mirror of
https://github.com/xiaozhou233/RiverWaterQualityMonitoring.git
synced 2026-12-05 13:05:53 +08:00
重构API路由,添加数据上传和获取功能,整合配置管理
This commit is contained in:
1 parent
0acfc15d48
commit
83b724598a
6 files changed
+142
-73
No files matched your search
@@ -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()
|
||||
}
|
||||
Reference in new issue
Block a user