elysiajs / elysia-swagger

A plugin for Elysia to auto-generate Swagger page
MIT License
90 stars 46 forks source link

OpenAPI spec wrong URL #161

Open Hazmi35 opened 1 month ago

Hazmi35 commented 1 month ago

I was using Traefik with these match rules.

Host(`domain.com`) && PathPrefix (`/api`)

This will route all domain.com with the prefix /api to the desired service which is our backend running Elysia with swagger. With #16 it was fixed to use the prefix from Elysia configuration, but on the latest version the Swagger option url is in the wrong url. (Does not respect prefix at all).

Hazmi35 commented 1 month ago

While #162 fixes externally set prefixes from Traefik for example, it does not respect Elysia prefix as stated in https://github.com/elysiajs/elysia-swagger/pull/162#issuecomment-2423836154