prod
This commit is contained in:
1 parent
d041575600
commit
69833d2067
5 files changed
+744
-377
No files matched your search
@@ -1,5 +1,6 @@
|
||||
import { Controller, Get } from '@nestjs/common';
|
||||
import { AppService } from './app.service';
|
||||
import { Public } from './modules/auth/public.decorator';
|
||||
|
||||
@Controller()
|
||||
export class AppController {
|
||||
@@ -9,4 +10,13 @@ export class AppController {
|
||||
getHello(): string {
|
||||
return this.appService.getHello();
|
||||
}
|
||||
|
||||
@Public()
|
||||
@Get('health')
|
||||
healthCheck(): { status: string; timestamp: string } {
|
||||
return {
|
||||
status: 'ok',
|
||||
timestamp: new Date().toISOString(),
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user