major update regarding many to many roles per user and their related impacts
This commit is contained in:
@ -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)
|
||||
|
||||
@ -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)
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user