Update main.py
Browse files
main.py
CHANGED
@@ -6,7 +6,7 @@ app = FastAPI()
|
|
6 |
|
7 |
@app.api_route("/{path:path}", methods=["GET", "POST", "PUT", "DELETE", "PATCH", "OPTIONS", "HEAD"])
|
8 |
async def proxy(request: Request, path: str):
|
9 |
-
target_url = f"http://
|
10 |
|
11 |
async with httpx.AsyncClient() as client:
|
12 |
method = request.method
|
|
|
6 |
|
7 |
@app.api_route("/{path:path}", methods=["GET", "POST", "PUT", "DELETE", "PATCH", "OPTIONS", "HEAD"])
|
8 |
async def proxy(request: Request, path: str):
|
9 |
+
target_url = f"http://216.128.139.239:1234/{path}"
|
10 |
|
11 |
async with httpx.AsyncClient() as client:
|
12 |
method = request.method
|