Spaces:
Running
Running
Bibhu Mishra
Add GitHub Actions CI/CD, HF Space deployment, market hours guard, and static serving
abc493d | import { Controller, Get, Param, Patch, Request, UseGuards } from '@nestjs/common'; | |
| import { JwtAuthGuard } from '../auth/jwt-auth.guard'; | |
| import { NotificationsService } from './notifications.service'; | |
| ('notifications') | |
| (JwtAuthGuard) | |
| export class NotificationsController { | |
| constructor(private svc: NotificationsService) {} | |
| () | |
| findAll(() req: { user: { id: number } }) { | |
| return this.svc.findForUser(req.user.id); | |
| } | |
| ('unread-count') | |
| unreadCount(() req: { user: { id: number } }) { | |
| return this.svc.unreadCount(req.user.id); | |
| } | |
| (':id/read') | |
| markRead(('id') id: string, () req: { user: { id: number } }) { | |
| return this.svc.markRead(+id, req.user.id); | |
| } | |
| ('read-all') | |
| markAllRead(() req: { user: { id: number } }) { | |
| return this.svc.markAllRead(req.user.id); | |
| } | |
| } | |