-
Notifications
You must be signed in to change notification settings - Fork 64
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
FastApi StaticFiles with mount not working #36
Comments
Just got blocked by this same issue. |
Getting this same error but not using StaticFiles. |
I've solved this issue by using the |
@aminelemaizi thanks for the workaround! I would like to know if this is an acceptable way of doing this or if there needs to be a decorator to exclude mounts for a more official fix? |
@killswitch-GUI , tbh I don't know if it is an acceptable way of doing things. I didn't see what does the code under the hood to confirm that. |
Following. |
Describe the bug
Our team is struggling to get
fastapi-versioning
working in our environment since we are serving static assets for our frontend and docs. This seems to be an issue withmount
when usingStaticFiles
.To Reproduce
Steps to reproduce the behavior:
uvicorn test:app
Expected behavior
A versioned API without having to version mounts.
Additional context
N/A
The text was updated successfully, but these errors were encountered: