v0.7.0 fix: remove obsolete GET / in health routes (collides with new landing /)
This commit is contained in:
+3
-10
@@ -8,16 +8,9 @@ const pkg = JSON.parse(readFileSync(resolve(process.cwd(), 'package.json'), 'utf
|
|||||||
};
|
};
|
||||||
|
|
||||||
export async function healthRoutes(app: FastifyInstance): Promise<void> {
|
export async function healthRoutes(app: FastifyInstance): Promise<void> {
|
||||||
app.get('/', async () => ({
|
// Note: `/` used to return an API-directory JSON here (since v0.2.0).
|
||||||
ok: true,
|
// Removed in v0.7.0 because the marketing landing page now owns `/`.
|
||||||
name: pkg.name,
|
// The same info is at GET /v1/health and on the human-facing /docs page.
|
||||||
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+)',
|
|
||||||
},
|
|
||||||
}));
|
|
||||||
|
|
||||||
app.get('/v1/health', async () => ({
|
app.get('/v1/health', async () => ({
|
||||||
ok: true,
|
ok: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user