`/ping` route support HEAD request method

Allow services like Uptimerobot to monitor the WebUI which uses `HEAD` request method because it is lighter whereas in order to use `GET` method, payment is required.

There's no significant impact for this changes.
pull/12839/head
dux-helektra 21 hours ago committed by GitHub
parent 22c0af9bb1
commit d7d07bde75
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -71,7 +71,7 @@ router_public = 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():
"""simple ping"""
return {"status": "pong"}

Loading…
Cancel
Save