-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
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
"/swagger/ui/" doesn't work #54
Comments
Hello @qvfh83 , You should be able to fix it by modifying /res/index.html file. This is how <link rel="stylesheet" type="text/css" href="./swagger-ui.css" >
|
Thanks for the quick response @lganzzzo! Hmm, I see - the files are being serviced out of the I'm not sure I quite understand the fix on the index.html side (don't come from that background so bear with me 😅) - I'd like to support paths both with and without the I also suppose similar steps could be taken if I also want to support the |
If you change paths in the <!-- change this -->
<link rel="stylesheet" type="text/css" href="./swagger-ui.css" >
<!-- to this: -->
<link rel="stylesheet" type="text/css" href="http://localhost:8000/swagger/swagger-ui.css" > |
I see - I just tested this and it works if I use the below (that way we can still use any generic port). Not sure if you think this is a good change to make in the package itself? I could open up an MR if so. <link rel="stylesheet" type="text/css" href="/swagger/swagger-ui.css" > |
When running a service, visiting the "localhost:{port}/swagger/ui/" url doesn't work, but the "localhost:{port}/swagger/ui" does. Is there any way to allow the extra '/' to be ignored or the behaviour to be the same?
I tried adding a new
ENDPOINT("GET", "/swagger/ui/", getUIRoot2)
, but that didn't seem to work.The text was updated successfully, but these errors were encountered: