mirror of
https://github.com/xiaozhou233/RiverWaterQualityMonitoring.git
synced 2026-12-05 13:05:53 +08:00
14 lines
272 B
Python
14 lines
272 B
Python
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()
|
|
} |