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
prefix parameter in APIRouter does not work for websocket #2639
Comments
Bug confirmed. Pushing a PR to fix in some minutes. Thank you for the report! @schen96 |
Done! @tiangolo |
Hi, Thanks for the fix @Kludex, do you know if this PR going to be merged any time soon ? |
I have no idea. Let me ping @tiangolo |
Hi I would like to say that this is quite important, as I would like to move code out of the main.py file, and this feature would help me to do so... |
Same here, I would really appreciate this PR to be merged |
I'd also highly appreciate #2640 being merged. |
Hope this PR to be merged soon. |
Still waiting over here as well. |
Waiting too... |
I am also waiting for this! :) |
Hello @tiangolo, I am also waiting for this bug fix. Thank you for your work :) |
Hi @tiangolo, Is there any plan to merge this? |
Assuming the original need was handled, this will be automatically closed now. But feel free to add more comments or create new issues or PRs. |
Description
Hi,
So with APIRouter(), the prefix path does not seem to be prepended to the websocket router path.
Not sure if its by design but if it is I feel like its quite misleading
Environment
OS: macOS Catalina 10.15.4
FastAPI Version: 0.63.0
Python version: 3.8.2
The text was updated successfully, but these errors were encountered: