Closed Manouchehri closed 1 year ago
Hey @Manouchehri I don't think setting the servers object is the right way to solve this issue, the problem should already be fixed in the latest release
If you want to define a servers object for your project you can already do so in the router like this
const router = OpenAPIRouter({
schema: {
servers: [
{
url: 'plans/'
}
]
}
})
If I define:
const router = OpenAPIRouter({
schema: {
servers: [
{
url: 'plans/'
}
]
}
})
Then the docs aren't actually served from /plans/docs
, but rather /docs
. It doesn't behave as expected IMO.
Partly resolves #20.