mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-28 11:21:18 +00:00
15 lines
627 B
TypeScript
15 lines
627 B
TypeScript
import { Controller, Get, Param, UseGuards } from '@nestjs/common';
|
|
import { ApiTags, ApiOperation, ApiBearerAuth } from '@nestjs/swagger';
|
|
import { DashboardService } from './dashboard.service';
|
|
import { JwtGuard } from '../../common/jwt.guard';
|
|
|
|
@ApiTags('Dashboard')
|
|
@Controller('dashboard')
|
|
@UseGuards(JwtGuard)
|
|
@ApiBearerAuth('JWT-auth')
|
|
export class DashboardController {
|
|
constructor(private service: DashboardService) {}
|
|
@Get(':passengerId') @ApiOperation({ summary: 'Get home dashboard aggregate for passenger' })
|
|
getHomeDashboard(@Param('passengerId') id: string) { return this.service.getHomeDashboard(id); }
|
|
}
|