优化 GetTestAPI的代码结构
This commit is contained in:
@@ -4,6 +4,7 @@ import MountUserAgent, { MountUserAgentRequestDate } from "@lib/APIMiddleware/Mo
|
|||||||
import Unbind from "@lib/APIMiddleware/Unbind";
|
import Unbind from "@lib/APIMiddleware/Unbind";
|
||||||
import ServerStdResponse from "@lib/ServerResponse/ServerStdResponse";
|
import ServerStdResponse from "@lib/ServerResponse/ServerStdResponse";
|
||||||
import { Response } from "express";
|
import { Response } from "express";
|
||||||
|
// 测试接口
|
||||||
class GetTest extends API {
|
class GetTest extends API {
|
||||||
constructor() {
|
constructor() {
|
||||||
super('GET', '/test', MountIP, MountUserAgent, Unbind);
|
super('GET', '/test', MountIP, MountUserAgent, Unbind);
|
||||||
@@ -14,4 +15,5 @@ class GetTest extends API {
|
|||||||
res.json(ServerStdResponse.OK);
|
res.json(ServerStdResponse.OK);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export default GetTest;
|
export default GetTest;
|
||||||
Reference in New Issue
Block a user