2025-11-06 10:07:08 +00:00
|
|
|
import { Controller, Get, UseGuards } from '@nestjs/common';
|
2025-10-21 10:42:59 +00:00
|
|
|
import { AppService } from './app.service';
|
2025-11-06 10:07:08 +00:00
|
|
|
import { AuthGuard } from './modules/auth/guard/auth.guard';
|
2025-10-21 10:42:59 +00:00
|
|
|
|
|
|
|
|
@Controller()
|
|
|
|
|
export class AppController {
|
|
|
|
|
constructor(private readonly appService: AppService) {}
|
|
|
|
|
|
2025-11-06 10:07:08 +00:00
|
|
|
@Get('/dashboard')
|
|
|
|
|
@UseGuards(AuthGuard)
|
|
|
|
|
getDashboard() {
|
|
|
|
|
return this.appService.getDashboard();
|
|
|
|
|
}
|
2025-10-21 10:42:59 +00:00
|
|
|
}
|