You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And the proxy would be **"stripping"** the **path prefix** on the fly before transmitting the request to the app server (probably Uvicorn via FastAPI CLI), keeping your application convinced that it is being served at `/app`, so that you don't have to update all your code to include the prefix `/api/v1`.
26
24
@@ -98,9 +96,7 @@ You can get the current `root_path` used by your application for each request, i
98
96
99
97
Here we are including it in the message just for demonstration purposes.
@@ -127,9 +123,7 @@ The response would be something like:
127
123
128
124
Alternatively, if you don't have a way to provide a command line option like `--root-path` or equivalent, you can set the `root_path` parameter when creating your FastAPI app:
0 commit comments