15 lines
352 B
TypeScript
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()
|
|
}
|
|
}
|