Skip to content

Commit fc262e4

Browse files
authored
Merge pull request #79 from Bouse1/feat/36-notifications-page
feat(web): connect notifications page to API
2 parents 5b2867d + b0a8c61 commit fc262e4

4 files changed

Lines changed: 333 additions & 172 deletions

File tree

apps/api/src/modules/notifications/notifications.controller.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Controller, Get, Param, Put, UseGuards } from '@nestjs/common';
1+
import { Controller, Get, Param, Patch, Put, UseGuards } from '@nestjs/common';
22
import { ApiBearerAuth, ApiOperation, ApiTags } from '@nestjs/swagger';
33

44
import { CurrentUser } from '../../common/decorators/current-user.decorator';
@@ -18,6 +18,7 @@ export class NotificationsController {
1818
return this.notificationsService.findAll(userId);
1919
}
2020

21+
@Patch(':id/read')
2122
@Put(':id/read')
2223
@ApiOperation({ summary: 'Mark notification as read' })
2324
markRead(@Param('id') id: string, @CurrentUser('id') userId: string) {

0 commit comments

Comments
 (0)