Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

If path is changed from default "/swagger" then it's showing in the swagger UI #32

Open
HKGx opened this issue Sep 23, 2023 · 0 comments

Comments

@HKGx
Copy link

HKGx commented Sep 23, 2023

Maybe we could include path by default in the exclude array?

exclude: Array.isArray(exclude) ? exclude : [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}`)
  })

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant