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

20 lines
458 B
TypeScript
Raw Normal View History

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) {}
@Get()
getHello(): string {
return this.appService.getHello();
}
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
}