添加 人机验证服务Demo接口的注册
This commit is contained in:
@@ -7,6 +7,8 @@ MySQLConnection
|
||||
RedisConnection
|
||||
// import API
|
||||
import GetTest from "./api/GetTest";
|
||||
import GetCaptcha from "./api/GetCaptcha";
|
||||
import CheckCaptcha from "./api/CheckCaptcha";
|
||||
const logger = new Logger('Server')
|
||||
|
||||
async function main(): Promise<void> {
|
||||
@@ -14,6 +16,8 @@ async function main(): Promise<void> {
|
||||
const apiLoader = new APILoader(config.cors);
|
||||
// addAPI
|
||||
apiLoader.add(GetTest);
|
||||
apiLoader.add(GetCaptcha);
|
||||
apiLoader.add(CheckCaptcha);
|
||||
|
||||
await apiLoader.start(config.API_Port);
|
||||
logger.info('Server started successfully')
|
||||
|
||||
Reference in New Issue
Block a user