ShogunPanda / fastify-openapi-docs

A simple plugin for Fastify that generates OpenAPI spec automatically.
ISC License
27 stars 5 forks source link

Redirect issue with ignoreTrailingSlash and the ui #5

Closed SomethingSexy closed 2 years ago

SomethingSexy commented 2 years ago

If looks like if the fastify option ignoreTrailingSlash is set to true that we get stuck in a redirect loop when trying to access the ui at /docs. Is there away this library can be updated to work with that option enabled?

  const app = fastify({
    ignoreTrailingSlash: true,
  })
ShogunPanda commented 2 years ago

Released in v2.0.3