mount swagger ui at apex /

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) <noreply@anthropic.com>
This commit is contained in:
Felix FaerberandClaude Opus 4.7 committed 2026-05-27 12:56:23 +03:00
1 parent dd83c25a50
commit 37ad52bee6
1 file changed
+1 -1
+1 -1
View File
@@ -12,7 +12,7 @@ import { getGatewayContext } from './gateway/context';
const app = new Elysia() const app = new Elysia()
.use(cors()) .use(cors())
.use(swagger()) .use(swagger({ path: '/' }))
.onError(({ error, set }) => { .onError(({ error, set }) => {
const status = set.status ?? 500; const status = set.status ?? 500;
const message = (error as Error).message ?? 'Internal error'; const message = (error as Error).message ?? 'Internal error';