import { Controller, Get, UseGuards } from '@nestjs/common'; import { AdminService } from './admin.service'; import { JwtAuthGuard } from '../auth/jwt-auth.guard'; import { RolesGuard } from '../auth/guards/roles.guard'; import { Roles } from '../auth/decorators/roles.decorator'; @Controller('admin') @UseGuards(JwtAuthGuard, RolesGuard) @Roles('admin') export class AdminController { constructor(private readonly adminService: AdminService) {} @Get('stats/overview') getStatsOverview() { return this.adminService.getStatsOverview(); } @Get('events') getEventsForManagement() { return this.adminService.getEventsForManagement(); } }