Skip to content

Commit

Permalink
fix: enable auth for /endorsement-data endpoint (#2409)
Browse files Browse the repository at this point in the history
  • Loading branch information
apalchys authored Jan 18, 2024
1 parent c367eae commit 3342145
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nestjs/src/profile/profile.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ export class ProfileController {
@Get(':username/endorsement-data')
@ApiOperation({ operationId: 'getEndorsementData' })
@ApiResponse({ type: EndorsementDto })
@UseGuards(DefaultGuard)
public async getEndorsementData(@Param('username') githubId: string) {
const data = await this.endormentService.getEndorsmentData(githubId);
return new EndorsementDataDto(data);
Expand Down

0 comments on commit 3342145

Please sign in to comment.