You've already forked Promocode-API
mirror of
https://github.com/devitq/Promocode-API.git
synced 2026-05-22 23:17:10 +00:00
init: initialized project struct
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
from http import HTTPStatus as status
|
||||
|
||||
from django.conf import settings
|
||||
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:
|
||||
settings.LOGGER.info("кто-то стучится в пинг")
|
||||
return schemas.PingOut(message_from_basement="АЛЕКСАНДР ШАХОВ Я ВАШ ФОНАТ")
|
||||
Reference in New Issue
Block a user