Open HKGx opened 1 year ago
Maybe we could include path by default in the exclude array? https://github.com/elysiajs/elysia-swagger/blob/7a42bf0cde29b45c099c39ed8da6f08c1fe41237/src/index.ts#L111
path
exclude
Example code:
import { Elysia } from "elysia"; import { swagger } from '@elysiajs/swagger' new Elysia() .use(swagger({path: "/docs"})) .listen(3000, ({ hostname, port }) => { console.log(`Running at http://${hostname}:${port}`) })
Maybe we could include
path
by default in theexclude
array? https://github.com/elysiajs/elysia-swagger/blob/7a42bf0cde29b45c099c39ed8da6f08c1fe41237/src/index.ts#L111Example code: