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