Hana Celeste commited on
Update main.py
Browse files
main.py
CHANGED
|
@@ -50,9 +50,7 @@ async def get_discord_info(uid: str):
|
|
| 50 |
return await discord_app.get_user_info(uid)
|
| 51 |
|
| 52 |
@app.get("/api/byps")
|
| 53 |
-
async def
|
| 54 |
-
if not url.startswith("http"):
|
| 55 |
-
return {"ok": False, "msg": "Invalid URL"}
|
| 56 |
return await byps.fetch(url)
|
| 57 |
|
| 58 |
@app.get("/")
|
|
|
|
| 50 |
return await discord_app.get_user_info(uid)
|
| 51 |
|
| 52 |
@app.get("/api/byps")
|
| 53 |
+
async def api_bypass(url: str):
|
|
|
|
|
|
|
| 54 |
return await byps.fetch(url)
|
| 55 |
|
| 56 |
@app.get("/")
|