fix: add swagger

This commit is contained in:
Abdalhameed Ahmad
2025-09-23 09:00:41 +03:00
parent 1830d92cbd
commit 918b15c315
2 changed files with 6 additions and 4 deletions

View File

@ -32,6 +32,7 @@ import {
ThemeResponseDto,
TransferToJuniorResponseDto,
} from '../dtos/response';
import { WeeklySummaryResponseDto } from '../dtos/response/weekly-summary.response.dto';
import { JuniorService } from '../services';
@Controller('juniors')
@ -148,7 +149,7 @@ export class JuniorController {
@Get(':juniorId/weekly-summary')
@UseGuards(RolesGuard)
@AllowedRoles(Roles.GUARDIAN)
@ApiDataResponse('string')
@ApiDataResponse(WeeklySummaryResponseDto)
async getWeeklySummary(
@Param('juniorId', CustomParseUUIDPipe) juniorId: string,
@AuthenticatedUser() user: IJwtPayload,