api_test commit

This commit is contained in:
2026-05-17 07:51:20 +00:00
parent 5c04e9abeb
commit b02efab73d
2 changed files with 24 additions and 0 deletions

18
var/routers/api.py Normal file
View File

@@ -0,0 +1,18 @@
from fastapi import APIRouter
import json
root_url = "greendam.ww3.tw"
# 建立 APIRouter 实例
router = APIRouter(
prefix="/api",
tags=["api"]
)
@router.get('/')
def 用于测试():
return {
"code": "200 ok!",
"msg": "Hello, World!!"
}