diff --git a/backend/src/contents/contents.controller.ts b/backend/src/contents/contents.controller.ts index 5b66270..a8a4bda 100644 --- a/backend/src/contents/contents.controller.ts +++ b/backend/src/contents/contents.controller.ts @@ -174,6 +174,16 @@ export class ContentsController { return this.contentsService.incrementUsage(id); } + @Patch(":id") + @UseGuards(AuthGuard) + update( + @Param("id") id: string, + @Req() req: AuthenticatedRequest, + @Body() updateContentDto: any, + ) { + return this.contentsService.update(id, req.user.sub, updateContentDto); + } + @Delete(":id") @UseGuards(AuthGuard) remove(@Param("id") id: string, @Req() req: AuthenticatedRequest) {