feat: Add 'Expertise' profile section to seed data, extend JWT token expiration times, and allow agents to retrieve profile sections by type.
This commit is contained in:
@@ -111,9 +111,9 @@ export class ProfileSectionsController {
|
||||
|
||||
@Get('agent-type/:agentTypeId')
|
||||
@UseGuards(JwtAuthGuard, RolesGuard)
|
||||
@Roles(UserRole.ADMIN)
|
||||
@Roles(UserRole.ADMIN, UserRole.AGENT)
|
||||
@ApiBearerAuth()
|
||||
@ApiOperation({ summary: 'Get all sections for an agent type with ordering (Admin only)' })
|
||||
@ApiOperation({ summary: 'Get all sections for an agent type with ordering' })
|
||||
@ApiQuery({ name: 'includeFields', required: false, type: Boolean })
|
||||
getSectionsForAgentType(
|
||||
@Param('agentTypeId', ParseUUIDPipe) agentTypeId: string,
|
||||
|
||||
Reference in New Issue
Block a user