From 218dd4877744f14ef0f48fa4ef316684d3862580 Mon Sep 17 00:00:00 2001 From: Tiago Yamamoto Date: Mon, 16 Feb 2026 08:47:42 -0600 Subject: [PATCH] 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 --- backoffice/src/main.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/backoffice/src/main.ts b/backoffice/src/main.ts index 09fdcf9..8d535d9 100644 --- a/backoffice/src/main.ts +++ b/backoffice/src/main.ts @@ -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