aa
This commit is contained in:
@@ -1025,3 +1025,11 @@ async def api_stop_continuous(request: Request):
|
||||
msg = await service.stop_continuous()
|
||||
service._append(msg)
|
||||
return {"ok": True, "message": msg}
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
import uvicorn
|
||||
|
||||
_host = os.getenv("WEB_BIND_HOST", "0.0.0.0")
|
||||
_port = int(os.getenv("WEB_BIND_PORT", "8000"))
|
||||
uvicorn.run("app_web:app", host=_host, port=_port, reload=False)
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
Telethon>=1.28.0,<2
|
||||
fastapi>=0.65.0,<1
|
||||
uvicorn>=0.17.0,<1
|
||||
itsdangerous>=2.0.0
|
||||
jinja2>=3.0.0,<4
|
||||
python-multipart>=0.0.5
|
||||
qrcode>=7.3.0
|
||||
|
||||
Reference in New Issue
Block a user