mirror of
https://github.com/freqtrade/freqtrade.git
synced 2026-02-20 11:21:44 +00:00
Merge pull request #12839 from dux-helektra/develop
`/ping` endpoint support HEAD request method
This commit is contained in:
@@ -71,7 +71,7 @@ router_public = APIRouter()
|
|||||||
router = APIRouter()
|
router = APIRouter()
|
||||||
|
|
||||||
|
|
||||||
@router_public.get("/ping", response_model=Ping, tags=["Info"])
|
@router_public.api_route("/ping", methods=["GET", "HEAD"], response_model=Ping, tags=["Info"])
|
||||||
def ping():
|
def ping():
|
||||||
"""simple ping"""
|
"""simple ping"""
|
||||||
return {"status": "pong"}
|
return {"status": "pong"}
|
||||||
|
|||||||
Reference in New Issue
Block a user