优化 GetTestAPI的代码结构

This commit is contained in:
tone
2024-09-25 01:40:27 +08:00
parent 3b500c71ec
commit 9a88b7de74

View File

@@ -4,6 +4,7 @@ import MountUserAgent, { MountUserAgentRequestDate } from "@lib/APIMiddleware/Mo
import Unbind from "@lib/APIMiddleware/Unbind";
import ServerStdResponse from "@lib/ServerResponse/ServerStdResponse";
import { Response } from "express";
// 测试接口
class GetTest extends API {
constructor() {
super('GET', '/test', MountIP, MountUserAgent, Unbind);
@@ -14,4 +15,5 @@ class GetTest extends API {
res.json(ServerStdResponse.OK);
}
}
export default GetTest;