com-backend/src/app.controller.ts
2024-06-05 14:11:47 +02:00

15 lines
352 B
TypeScript

import { Controller, Get, UseGuards } from '@nestjs/common'
import { AppService } from './app.service'
import { AuthGuard } from './auth/auth.guard'
@Controller()
export class AppController {
constructor(private readonly appService: AppService) {}
@UseGuards(AuthGuard)
@Get()
getHello(): string {
return this.appService.getHello()
}
}