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:
1 parent
dd83c25a50
commit
37ad52bee6
1 file changed
+1
-1
+1
-1
@@ -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';
|
||||||
|
|||||||
Reference in new issue
Block a user