Hana Celeste commited on
Commit
06d5cb1
·
verified ·
1 Parent(s): fa5d0c1

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -3
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 bypass_fetch(url: str = Query(..., description="URL needs to scratch data")):
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("/")