hospital-log/backend/api/src/app.controller.ts

20 lines
458 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()
getHello(): string {
return this.appService.getHello();
}
@Get('/dashboard')
@UseGuards(AuthGuard)
getDashboard() {
return this.appService.getDashboard();
}
}