From 37ad52bee6ac221c06074dfe490314afdf84d473 Mon Sep 17 00:00:00 2001 From: Felix Faerber Date: Wed, 27 May 2026 12:56:23 +0300 Subject: [PATCH] mount swagger ui at apex / MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Was at /swagger by default. Apex 404 was confusing — there's no other content on the api host, so make the API docs the default landing. Co-Authored-By: Claude Opus 4.7 (1M context) --- src/api.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api.ts b/src/api.ts index 3f4127c..cb0642b 100644 --- a/src/api.ts +++ b/src/api.ts @@ -12,7 +12,7 @@ import { getGatewayContext } from './gateway/context'; const app = new Elysia() .use(cors()) - .use(swagger()) + .use(swagger({ path: '/' })) .onError(({ error, set }) => { const status = set.status ?? 500; const message = (error as Error).message ?? 'Internal error';