configured base route and setup healthcheck endpoint
This commit is contained in:
parent
61e5a49745
commit
acdb7ad9c9
13 changed files with 98 additions and 21 deletions
|
|
@ -1,12 +1,7 @@
|
|||
import { Controller, Get } from '@nestjs/common';
|
||||
import { AppService } from './app.service';
|
||||
|
||||
@Controller()
|
||||
export class AppController {
|
||||
constructor(private readonly appService: AppService) { }
|
||||
|
||||
@Get()
|
||||
getHello(): string {
|
||||
return this.appService.getHello();
|
||||
}
|
||||
@Get('health')
|
||||
health(): void { }
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue