mirror of
https://gitlab.com/megazordpobeda/DataRush.git
synced 2026-05-22 23:17:09 +00:00
19 lines
352 B
Python
19 lines
352 B
Python
from http import HTTPStatus as status
|
|
|
|
from django.http import HttpRequest
|
|
from ninja import Router
|
|
|
|
from api.v1.ping import schemas
|
|
|
|
router = Router(tags=["ping"])
|
|
|
|
|
|
@router.get(
|
|
"",
|
|
response={
|
|
status.OK: schemas.PingOut,
|
|
},
|
|
)
|
|
def ping(request: HttpRequest) -> tuple[status, schemas.PingOut]:
|
|
return status.OK, schemas.PingOut
|