Skip to content
Snippets Groups Projects

Development to testing

Merged Ghost User requested to merge Development into testing
3 files
+ 36
1
Compare changes
  • Side-by-side
  • Inline
Files
3
+ 16
0
import { Controller, Get, Param } from '@nestjs/common';
import { NotificationsService } from './notifications.service';
import { Roles } from 'src/shared/guard.decorator';
@Controller('notifications')
export class NotificationsController {
constructor(private notificationService: NotificationsService) {}
// get all sent notifications for game
// :id is the id of the game
@Get(':id')
@Roles('admin', 'factionleader', 'soldier', 'groupleader')
async(@Param('id') gameId) {
return this.notificationService.getNotifications(gameId);
}
}
Loading