Small refactoring
This commit is contained in:
@@ -3,5 +3,5 @@ from django.urls import path
|
||||
import api.ping.views
|
||||
|
||||
urlpatterns = [
|
||||
path("", api.ping.views.PingView.as_view(), name="ping"),
|
||||
path("", api.ping.views.PingApiView.as_view(), name="ping"),
|
||||
]
|
||||
|
||||
@@ -3,7 +3,7 @@ from rest_framework.response import Response
|
||||
from rest_framework.views import APIView
|
||||
|
||||
|
||||
class PingView(APIView):
|
||||
class PingApiView(APIView):
|
||||
def get(self, request):
|
||||
data = {"message": "ok"}
|
||||
return Response(data, status=status.HTTP_200_OK)
|
||||
|
||||
Reference in New Issue
Block a user