返回 MoneyPrinterTurbo
ping.py
根目录 / app / controllers / ping.py
1 from fastapi import APIRouter, Request
2
3 router = APIRouter()
4
5
6 @router.get(
7 "/ping",
8 tags=["Health Check"],
9 description="检查服务可用性",
10 response_description="pong",
11 )
12 def ping(request: Request) -> str:
13 return "pong"
14
14 lines PYTHON