mirror of
https://github.com/LiteyukiStudio/LiteyukiBot.git
synced 2025-10-05 12:16:24 +00:00
🔧 添加获取 FastAPI 实例的函数,更新配置文件路径以支持新的源文件
Some checks failed
Pytest API Testing / Pytes-API-Testing (push) Failing after 17s
Some checks failed
Pytest API Testing / Pytes-API-Testing (push) Failing after 17s
This commit is contained in:
@@ -3,6 +3,10 @@ from fastapi import FastAPI
|
||||
|
||||
app = FastAPI()
|
||||
|
||||
def get_app() -> FastAPI:
|
||||
"""获取 FastAPI 实例"""
|
||||
return app
|
||||
|
||||
@app.get("/")
|
||||
async def root():
|
||||
return {"message": "Hello LiteyukiBot"}
|
||||
|
Reference in New Issue
Block a user