Skip to content

Swagger files are not accessible under gateway #62

@mopcweb

Description

@mopcweb

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions