This commit is contained in:
zjt
2024-05-21 21:59:30 +08:00
commit bfbed61780
21 changed files with 114397 additions and 0 deletions

7
src/utils/register.ts Normal file
View File

@@ -0,0 +1,7 @@
import { RequestHandler } from "../type/request";
import router from "../routers/router";
const RegistHandler = (method: "get" | "post" | "options", url: string ,handler: RequestHandler<any, any>) => {
router[method](url, handler as any);
}
export { RegistHandler };