Skip to content

Commit c3ca641

Browse files
authored
chore(api): some small fixes (#47)
1 parent b9c76f9 commit c3ca641

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

modules/services/api/src/auth/controllers/profile.controller.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import { AuthUsersService } from '@vidya/api/auth/services';
1818
import { Routes } from '@vidya/protocol';
1919

2020
@Controller()
21-
@ApiTags('User')
21+
@ApiTags('Authentication')
2222
export class ProfileController {
2323
constructor(private readonly usersService: AuthUsersService) {}
2424

modules/services/api/src/edu/controllers/users/userRoles.controller.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,11 @@ import { CrudDecorators } from '@vidya/api/utils';
99
import * as entities from '@vidya/entities';
1010
import { Routes } from '@vidya/protocol';
1111

12+
// TODO Add documentation configurations, to change doc:
13+
// Get many UserRoles -> Get all roles of a user
14+
// Create a new UserRole -> Set roles for a user
1215
const Crud = CrudDecorators({
13-
entityName: 'Role',
16+
entityName: 'UserRole',
1417
getManyResponseDto: dto.GetUserRolesListResponse,
1518
createOneResponseDto: dto.SetUserRolesResponse,
1619
});

0 commit comments

Comments
 (0)