v0.7.0 fix: remove obsolete GET / in health routes (collides with new landing /)

This commit is contained in:
2026-05-26 18:32:41 +02:00
parent d20e2ad6c4
commit 497408624a
+3 -10
View File
@@ -8,16 +8,9 @@ const pkg = JSON.parse(readFileSync(resolve(process.cwd(), 'package.json'), 'utf
};
export async function healthRoutes(app: FastifyInstance): Promise<void> {
app.get('/', async () => ({
ok: true,
name: pkg.name,
version: pkg.version,
note: 'closed orchestrator server for the WordPress IDE plugin',
endpoints: {
health: 'GET /v1/health',
runs: 'POST /v1/runs (orchestrator entrypoint — step 4+)',
},
}));
// Note: `/` used to return an API-directory JSON here (since v0.2.0).
// Removed in v0.7.0 because the marketing landing page now owns `/`.
// The same info is at GET /v1/health and on the human-facing /docs page.
app.get('/v1/health', async () => ({
ok: true,