wsj1995 commited on
Commit
e066e62
·
verified ·
1 Parent(s): 3260853

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -0
app.py CHANGED
@@ -34,3 +34,11 @@ app = FastAPI(dependencies=[Depends(verify_internal_token)])
34
  def ping():
35
  subprocess.Popen(['python', '/tmp/download.py'])
36
  return True
 
 
 
 
 
 
 
 
 
34
  def ping():
35
  subprocess.Popen(['python', '/tmp/download.py'])
36
  return True
37
+
38
+ @app.post("/download")
39
+ def ping(args:dict):
40
+ id = args['id']
41
+ url = args['url']
42
+ callback=args['callback']
43
+ subprocess.Popen(['python', '/tmp/download.py',str(id),url,callback])
44
+ return True