10 lines
255 B
Python
10 lines
255 B
Python
from rest_framework import status
|
|
from rest_framework.response import Response
|
|
from rest_framework.views import APIView
|
|
|
|
|
|
class PingApiView(APIView):
|
|
def get(self, request):
|
|
data = "ok"
|
|
return Response(data, status=status.HTTP_200_OK)
|