🔧 更新 Dockerfile 和 docker-compose 文件,添加配置目录并引入新依赖,重构配置加载功能
Some checks failed
Pytest API Testing / Pytes-API-Testing (push) Failing after 21s

This commit is contained in:
2025-04-28 15:03:56 +08:00
parent 20eb1809f1
commit a4e423168c
12 changed files with 248 additions and 6 deletions

View File

@@ -0,0 +1,20 @@
import asyncio
from fastapi import FastAPI
import hypercorn
import hypercorn.run
app = FastAPI()
@app.get("/")
async def root():
return {"message": "Hello LiteyukiBot"}
async def run_app():
"""liteyukibot入口函数
"""
hypercorn.run.serve(app, config=hypercorn.Config.from_mapping(
bind=["localhost:8000"],
workers=1,
))