fix: remove duplicate /health route in backoffice
The health endpoint was defined both in main.ts and app.controller.ts causing FastifyError: Method 'GET' already declared
This commit is contained in:
parent
11e0deef2a
commit
218dd48777
1 changed files with 0 additions and 4 deletions
|
|
@ -86,10 +86,6 @@ async function bootstrap() {
|
|||
|
||||
SwaggerModule.setup('docs', app, SwaggerModule.createDocument(app, config));
|
||||
|
||||
// Health check endpoint
|
||||
const fastifyInstance = app.getHttpAdapter().getInstance();
|
||||
fastifyInstance.get('/health', async () => ({ status: 'ok', timestamp: new Date().toISOString() }));
|
||||
|
||||
// Start server
|
||||
const port = process.env.BACKOFFICE_PORT || 3001;
|
||||
const host = '0.0.0.0'; // Force 0.0.0.0 to allow container binding even if env injects public IP
|
||||
|
|
|
|||
Loading…
Reference in a new issue