Spaces:
Paused
Paused
opencode commited on
Commit ·
f726e88
1
Parent(s): f5a8def
fix: remove invalid escape characters from docstring
Browse files
main.py
CHANGED
|
@@ -17,7 +17,7 @@ app.add_middleware(
|
|
| 17 |
|
| 18 |
@app.api_route("/{path:path}", methods=["GET", "POST", "PUT", "DELETE", "OPTIONS"])
|
| 19 |
async def proxy(request: Request, path: str):
|
| 20 |
-
|
| 21 |
url = f"{TARGET_URL}/{path}"
|
| 22 |
|
| 23 |
if request.method == "OPTIONS":
|
|
|
|
| 17 |
|
| 18 |
@app.api_route("/{path:path}", methods=["GET", "POST", "PUT", "DELETE", "OPTIONS"])
|
| 19 |
async def proxy(request: Request, path: str):
|
| 20 |
+
"""Forwards all requests to the target backend."""
|
| 21 |
url = f"{TARGET_URL}/{path}"
|
| 22 |
|
| 23 |
if request.method == "OPTIONS":
|