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

How to use Swagger for multiple instances? #138

Open
kulterryan opened this issue Aug 4, 2024 · 5 comments · May be fixed by #171
Open

How to use Swagger for multiple instances? #138

kulterryan opened this issue Aug 4, 2024 · 5 comments · May be fixed by #171

Comments

@kulterryan
Copy link

I want to use swagger for two different paths:

/api/frontend/docs & /api/backend/docs but both of them are showing the same paths, how can I create docs for both frontend and backend at different URLs?

@kravetsone
Copy link
Contributor

Configure swagger prefix

@kulterryan
Copy link
Author

I'm doing it like this only.

Screenshot 2024-08-05 at 7 24 55 PM

@andrefelipeschulle
Copy link

@kulterryan managed to make it work?

@kulterryan
Copy link
Author

@kulterryan managed to make it work?

Nope, using monorepo setup with elysia as packages.

Ref: https://elysiajs.com/patterns/mount.html

@andrefelipeschulle
Copy link

@kulterryan I sent a PR #171, with code to support multiple instances with different paths, I left an example code in the PR as well

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

Successfully merging a pull request may close this issue.

3 participants