From d070f28e465c6050475a899eeefd48d40c6cf824 Mon Sep 17 00:00:00 2001 From: harisato Date: Thu, 7 Sep 2023 15:28:55 +0700 Subject: [PATCH] feat(be): view protected chapter --- src/chapter/chapter.controller.ts | 2 +- src/chapter/chapter.service.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/chapter/chapter.controller.ts b/src/chapter/chapter.controller.ts index 022c71f4..85aa79ab 100644 --- a/src/chapter/chapter.controller.ts +++ b/src/chapter/chapter.controller.ts @@ -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); diff --git a/src/chapter/chapter.service.ts b/src/chapter/chapter.service.ts index f1dd2d17..fbefd55e 100644 --- a/src/chapter/chapter.service.ts +++ b/src/chapter/chapter.service.ts @@ -1,4 +1,4 @@ -import { Injectable, Logger, NotFoundException } from '@nestjs/common'; +import { Injectable, Logger } from '@nestjs/common'; import * as _ from 'lodash'; import {