We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
scalarConfig.spec.url
path
The changes introduced in #59 breaks in the case where swagger is mounted with path in the subdirectory.
swagger
const app = new Elysia() .use( swagger({ path: "/services/docs", }) ) .get("/services/hello", () => ({ ok: true }));
When going to /services/docs, I get a blank page. This is because Scalar tries to load the data from /services/services/docs/json.
/services/docs
/services/services/docs/json
Current workaround is to manually override the scalarConfig
scalarConfig
const app = new Elysia() .use( swagger({ path: "/services/docs", scalarConfig: { spec: { url: "/services/docs/json" }, }, }) ) .get("/services/hello", () => ({ ok: true }));
The text was updated successfully, but these errors were encountered:
I also have this problem
Sorry, something went wrong.
No branches or pull requests
The changes introduced in #59 breaks in the case where
swagger
is mounted withpath
in the subdirectory.When going to
/services/docs
, I get a blank page. This is because Scalar tries to load the data from/services/services/docs/json
.Current workaround is to manually override the
scalarConfig
The text was updated successfully, but these errors were encountered: