update profile and password

This commit is contained in:
2024-11-27 17:20:17 +07:00
parent 98b6bf4cd6
commit 7b712d9ee9
3 changed files with 7 additions and 17 deletions

View File

@ -16,8 +16,8 @@ export class RoutePrivate {
app.get('/api/user/list', UserController.list)
app.post('/api/user/create', UserController.create)
app.put('/api/user/update/:id', UserController.update)
app.put('/api/user/update_profile/:id', UserController.updateProfile)
app.put('/api/user/update_password/:id', UserController.updatePassword)
app.put('/api/user/update_profile', UserController.updateProfile)
app.put('/api/user/update_password', UserController.updatePassword)
app.delete('/api/user/delete/:id', UserController.delete)
app.put('/api/user/restore/:id', UserController.restore)

View File

@ -6,6 +6,7 @@ export class RoutePublic {
static setup(app: express.Application) {
app.post('/api/login', AuthController.login)
app.post('/api/reset_password', AuthController.login)
app.put('/api/logout/:refresh_token', AuthController.logout)
app.put('/api/renew_token/:refresh_token', AuthController.renewToken)