This commit is contained in:
lik
2026-06-12 08:59:48 +08:00
parent b3f933e30a
commit fba44ca015
2 changed files with 283 additions and 142 deletions

View File

@@ -11,14 +11,16 @@ class ApiRouter {
setupRoutes() {
const userRouter = new Router({ prefix: '/user' });
userRouter.post('/wxgetphonenumber', this.handler.wxGetPhoneNumber.bind(this.handler));
userRouter.post('/wxsignin', this.handler.wxSignin.bind(this.handler));
userRouter.post('/update', this.handler.updateUser.bind(this.handler));
userRouter.post('/register', this.handler.register.bind(this.handler));
userRouter.post('/signin', this.handler.signin.bind(this.handler));
userRouter.post('/signout', this.handler.signout.bind(this.handler));
userRouter.post('/userInfo', this.handler.userInfo.bind(this.handler));
userRouter.post('/update', this.handler.updateUser.bind(this.handler));
userRouter.post('/list', this.handler.userList.bind(this.handler));
userRouter.post('/wxsignin', this.handler.wxSignin.bind(this.handler));
userRouter.post('/wxgetphonenumber', this.handler.wxGetPhoneNumber.bind(this.handler));
this.router.use(userRouter.routes());
this.printRoutes(this.router.stack);