major update regarding many to many roles per user and their related impacts

This commit is contained in:
2025-01-10 19:31:55 +07:00
parent 9473c56619
commit 085cae47e1
6 changed files with 297 additions and 108 deletions

View File

@ -17,6 +17,8 @@ export class RoutePrivate {
app.get('/api/user/export', UserController.export)
app.post('/api/user/create', UserController.create)
app.put('/api/user/update/:id', UserController.update)
app.put('/api/user/add_role/:id/:id_role', UserController.addRole)
app.put('/api/user/delete_role/:id/:id_role', UserController.deleteRole)
app.put('/api/user/update_profile', UserController.updateProfile)
app.put('/api/user/update_password', UserController.updatePassword)
app.get('/api/user/detail/:id', UserController.detail)

View File

@ -12,7 +12,7 @@ export class RoutePublic {
app.put('/api/reset_password/:email', AuthController.resetPassword)
app.put('/api/update_password/:token', AuthController.updatePassword)
app.put('/api/logout/:refresh_token', AuthController.logout)
app.put('/api/renew_token/:refresh_token', AuthController.renewToken)
app.put('/api/renew_token/:refresh_token/:application', AuthController.renewToken)
}
}