fast-gateway
fast-gateway copied to clipboard
Swagger files are not accessible under gateway
trafficstars
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:

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