21 lines
415 B
TypeScript
21 lines
415 B
TypeScript
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' };
|
|
}
|
|
}
|