add: get role for create membership
This commit is contained in:
@@ -47,6 +47,20 @@ export class ConfigurableController {
|
||||
};
|
||||
}
|
||||
|
||||
@Get('/roles/for-membership')
|
||||
async findAllForMembership(@Query('page') page: number) {
|
||||
const [data, count] = await this.roleService.findAllRolesForCreateMember(
|
||||
page,
|
||||
);
|
||||
|
||||
return {
|
||||
data,
|
||||
count,
|
||||
statusCode: HttpStatus.OK,
|
||||
message: 'success',
|
||||
};
|
||||
}
|
||||
|
||||
@Get(':id')
|
||||
async findOne(@Param('id', ParseUUIDPipe) id: string) {
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user