15 lines
334 B
TypeScript
15 lines
334 B
TypeScript
import { Controller, Get } from '@nestjs/common';
|
|
import { AppService } from './app.service';
|
|
import { Public } from './auth/decorators';
|
|
|
|
@Controller('')
|
|
@Public(true)
|
|
export class AppController {
|
|
constructor(private readonly appService: AppService) {}
|
|
|
|
@Get()
|
|
getHello(): string {
|
|
return this.appService.getHello();
|
|
}
|
|
}
|