重构API路由,添加数据上传和获取功能,整合配置管理

This commit is contained in:
xiaozhou233 committed 2026-06-30 21:59:14 +08:00
1 parent 0acfc15d48
commit 83b724598a
6 files changed
+142 -73

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
from fastapi import APIRouter
from datetime import datetime
from utils import *
router = APIRouter()
@router.get("/")
async def root():
return {
"code" : 200,
"status" : "ok",
"message" : "Welcome to the API",
"time" : timenow()
}