API checkRole and history/user
This commit is contained in:
parent
38871bcc80
commit
3167fe271e
7 changed files with 142 additions and 6 deletions
|
|
@ -81,6 +81,11 @@ export class ProfileAbilityEmployeeController extends Controller {
|
|||
return new HttpSuccess(getProfileAbilityId);
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @summary ประวัติแก้ไขความสามารถ by keycloak
|
||||
*
|
||||
*/
|
||||
@Get("history/user")
|
||||
public async getProfileAbilityHistoryUser(@Request() request: RequestWithUser) {
|
||||
const profile = await this.profileEmployeeRepo.findOneBy({ keycloak: request.user.sub });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue