Skip to content

Commit

Permalink
feat(be): view protected chapter
Browse files Browse the repository at this point in the history
  • Loading branch information
harisato committed Sep 7, 2023
1 parent 71f1143 commit d070f28
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/chapter/chapter.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export class ChapterController {
@UseGuards(AuthGuard, RolesGuard)
@ApiBearerAuth()
@Roles(Role.User)
@Get(':chapterId')
@Get(':chapterId/protected')
@UseInterceptors(AuthUserInterceptor)
view(@Param() data: ViewProtectedChapterRequestDto) {
return this.chapterSvc.view(data);
Expand Down
2 changes: 1 addition & 1 deletion src/chapter/chapter.service.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Injectable, Logger, NotFoundException } from '@nestjs/common';
import { Injectable, Logger } from '@nestjs/common';

import * as _ from 'lodash';
import {
Expand Down

0 comments on commit d070f28

Please sign in to comment.