add auth
This commit is contained in:
@ -1,16 +1,19 @@
|
||||
import { Controller, Get } from '@nestjs/common';
|
||||
import { AppService } from './app.service';
|
||||
import { Public } from './auth';
|
||||
|
||||
@Controller()
|
||||
export class AppController {
|
||||
constructor(private readonly appService: AppService) {}
|
||||
|
||||
@Get()
|
||||
@Public()
|
||||
getHello(): string {
|
||||
return this.appService.getHello();
|
||||
}
|
||||
|
||||
@Get('health')
|
||||
@Public()
|
||||
health(): { status: string } {
|
||||
return { status: 'ok' };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user