Jochen Mehlich e73d0cb954 added sourcePerson ping
Signed-off-by: Jochen Mehlich <contact@jochenmehlich.de>
2023-11-29 18:49:41 +01:00

12 lines
303 B
Python

from rest_framework.decorators import api_view, permission_classes
from django.http import JsonResponse
from django.views.decorators.csrf import csrf_exempt
# Create your views here.
@api_view(["GET"])
@csrf_exempt
def ping(request):
content = {"message": "pong"}
return JsonResponse(content)