Small refactoring
This commit is contained in:
1 parent
3c335f9efe
commit
8fa04faa55
4 files changed
+8
-6
No files matched your search
@@ -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