This commit is contained in:
josc146
2023-07-26 22:24:26 +08:00
parent 1df345b5eb
commit d0fd480bd6
9 changed files with 78 additions and 24 deletions

View File

@@ -42,12 +42,12 @@ def init():
ngrok_connect()
@app.get("/")
@app.get("/", tags=["Root"])
def read_root():
return {"Hello": "World!"}
@app.post("/exit")
@app.post("/exit", tags=["Root"])
def exit():
parent_pid = os.getpid()
parent = psutil.Process(parent_pid)