12 lines
343 B
TypeScript
12 lines
343 B
TypeScript
import { Controller, Get, Inject } from '@nestjs/common';
|
|||
|
|
import { DashboardService } from './dashboard.service.ts';
|
||
|
|
|
||
|
|
@Controller('dashboard')
|
||
|
|
export class DashboardController {
|
||
|
|
constructor(@Inject(DashboardService) private readonly dashboard: DashboardService) {}
|
||
|
|
|
||
|
|
@Get('stats')
|
||
|
|
getStats() {
|
||
|
|
return this.dashboard.getStats();
|
||
|
|
}
|
||
|
|
}
|