Update main.py
Browse files
main.py
CHANGED
|
@@ -13,8 +13,8 @@ app.add_middleware(
|
|
| 13 |
allow_headers=["*"],
|
| 14 |
)
|
| 15 |
|
| 16 |
-
@app.get("/
|
| 17 |
-
@app.post("/
|
| 18 |
async def proxy(request: Request, url: str):
|
| 19 |
if not url:
|
| 20 |
raise HTTPException(status_code=400, detail="URL not provided")
|
|
|
|
| 13 |
allow_headers=["*"],
|
| 14 |
)
|
| 15 |
|
| 16 |
+
@app.get("/")
|
| 17 |
+
@app.post("/")
|
| 18 |
async def proxy(request: Request, url: str):
|
| 19 |
if not url:
|
| 20 |
raise HTTPException(status_code=400, detail="URL not provided")
|