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

Swagger files are not accessible under gateway #62

Open
mopcweb opened this issue Apr 20, 2021 · 0 comments
Open

Swagger files are not accessible under gateway #62

mopcweb opened this issue Apr 20, 2021 · 0 comments

Comments

@mopcweb
Copy link

mopcweb commented Apr 20, 2021

Hi!
thanks for this lib!!

i have a problem with serving swagger UI under routes specified in fast-gateway.

steps to repoduce

gateway({
    prefix: '/test',
    target: `http://localhost:3022`,
    docs: {
      name: 'Docs',
      endpoint: '/api-docs/swagger.json',
      type: 'swagger',
    },
 }).start(3020);

and basic example server from here.

so when open browser at localhost:3022/api-docs - i'll see Swagger UI.
but when open localhost:3020/test/api-docs - there are several errors:

image

Question - how can i serve swagger ui for projects under this gateway?

thanks

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