Spaces:
Paused
Paused
Commit ·
bfb3375
1
Parent(s): cb961d4
Update repo
Browse files
main.py
CHANGED
|
@@ -98,10 +98,8 @@ async def proxy_api(request: Request, token_valid: bool = Depends(verify_token))
|
|
| 98 |
@app.api_route(
|
| 99 |
"/{path:path}", methods=["GET", "POST", "PUT", "DELETE", "PATCH", "OPTIONS", "HEAD"]
|
| 100 |
)
|
| 101 |
-
async def proxy_endpoint(
|
| 102 |
-
|
| 103 |
-
):
|
| 104 |
-
return response
|
| 105 |
|
| 106 |
|
| 107 |
if __name__ == "__main__":
|
|
|
|
| 98 |
@app.api_route(
|
| 99 |
"/{path:path}", methods=["GET", "POST", "PUT", "DELETE", "PATCH", "OPTIONS", "HEAD"]
|
| 100 |
)
|
| 101 |
+
async def proxy_endpoint(path: str, request: Request):
|
| 102 |
+
return await proxy_api(request) # Call proxy_api and return its Response
|
|
|
|
|
|
|
| 103 |
|
| 104 |
|
| 105 |
if __name__ == "__main__":
|