You've already forked Promocode-API
mirror of
https://github.com/devitq/Promocode-API.git
synced 2026-05-22 20:57:11 +00:00
20 lines
437 B
Python
20 lines
437 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},
|
|
summary="Ping server",
|
|
)
|
|
def index(
|
|
request: HttpRequest,
|
|
) -> schemas.PingOut:
|
|
return schemas.PingOut(message_from_basement="АЛЕКСАНДР ШАХОВ Я ВАШ ФAНАТ") # noqa: RUF001
|