重构后端,完善获取资源/下载列表、博客列表接口
This commit is contained in:
16
Server/src/APIs/GetTest.ts
Normal file
16
Server/src/APIs/GetTest.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
import { API } from "../Plugs/API/API";
|
||||
import ServerStdResponse from "../ServerStdResponse";
|
||||
import MySQLConnection from '../Plugs/MySQLConnection'
|
||||
|
||||
// 测试接口
|
||||
class GetTest extends API {
|
||||
constructor() {
|
||||
super('GET', '/test');
|
||||
}
|
||||
|
||||
public async onRequset(data: any, res: any) {
|
||||
res.json(ServerStdResponse.OK);
|
||||
}
|
||||
}
|
||||
|
||||
export default GetTest;
|
||||
Reference in New Issue
Block a user