docs: update docs

This commit is contained in:
EstrellaXD
2023-07-06 12:34:51 +08:00
parent d221fa6782
commit d2295ade1b
3 changed files with 9 additions and 7 deletions

View File

@@ -1,6 +1,7 @@
import logging
import os
import signal
import sys
from fastapi import APIRouter, Depends, HTTPException, status
@@ -20,6 +21,7 @@ async def startup():
@router.on_event("shutdown")
async def shutdown():
program.stop()
sys.exit(0)
@router.get("/restart")