18 lines
402 B
TypeScript
18 lines
402 B
TypeScript
import { Controller, Get } from '@nestjs/common';
|
|
import { DashboardService } from './dashboard.service';
|
|
|
|
@Controller('dashboard')
|
|
export class DashboardController {
|
|
constructor(private readonly service: DashboardService) {}
|
|
|
|
@Get('stats')
|
|
getStats() {
|
|
return this.service.getStats();
|
|
}
|
|
|
|
@Get('recent-activity')
|
|
getRecentActivity() {
|
|
return this.service.getRecentActivity();
|
|
}
|
|
}
|