initial: standalone repo from monorepo split
This commit is contained in:
17
src/dashboard/dashboard.controller.ts
Normal file
17
src/dashboard/dashboard.controller.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user