mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-23 23:19:19 +08:00
15 lines
405 B
TypeScript
15 lines
405 B
TypeScript
import { Controller, Get, UseGuards } from '@nestjs/common';
|
|
import { JwtAuthGuard } from '../auth/jwt-auth.guard';
|
|
import { DashboardService } from './dashboard.service';
|
|
|
|
@Controller('dashboard')
|
|
@UseGuards(JwtAuthGuard)
|
|
export class DashboardController {
|
|
constructor(private readonly dashboardService: DashboardService) {}
|
|
|
|
@Get('stats')
|
|
stats() {
|
|
return this.dashboardService.stats();
|
|
}
|
|
}
|