Open bogeychan opened 4 months ago
elysia@1.1.3 @elysiajs/swagger@1.1.0
import { Elysia } from 'elysia' import { swagger } from "@elysiajs/swagger"; new Elysia() .use( swagger({ path: '/v1/swagger' }) ) .get('/', () => '') .listen(8080)
The path passed to the frontend is wrong: Instead of v1/swagger/json it has to be /v1/swagger/json for both scalar and swagger-ui https://github.com/elysiajs/elysia-swagger/blob/ca5bdfac020cf8bb1e53355e7a2a3f9535f4fe04/src/index.ts#L69 https://github.com/elysiajs/elysia-swagger/blob/ca5bdfac020cf8bb1e53355e7a2a3f9535f4fe04/src/index.ts#L86
v1/swagger/json
/v1/swagger/json
scalar
swagger-ui
reported on discord
Versions
Code
Problem
The path passed to the frontend is wrong: Instead of
v1/swagger/json
it has to be/v1/swagger/json
for bothscalar
andswagger-ui
https://github.com/elysiajs/elysia-swagger/blob/ca5bdfac020cf8bb1e53355e7a2a3f9535f4fe04/src/index.ts#L69 https://github.com/elysiajs/elysia-swagger/blob/ca5bdfac020cf8bb1e53355e7a2a3f9535f4fe04/src/index.ts#L86reported on discord