15 lines
382 B
TypeScript
15 lines
382 B
TypeScript
import { Controller, Get, UseGuards } from '@nestjs/common';
|
|
import { AppService } from './app.service';
|
|
import { AuthGuard } from './modules/auth/guard/auth.guard';
|
|
|
|
@Controller()
|
|
export class AppController {
|
|
constructor(private readonly appService: AppService) {}
|
|
|
|
@Get('/dashboard')
|
|
@UseGuards(AuthGuard)
|
|
getDashboard() {
|
|
return this.appService.getDashboard();
|
|
}
|
|
}
|