Reoraganized project

This commit is contained in:
ITQ
2024-03-02 13:22:29 +03:00
parent bcdcfaf7f2
commit ed687650ba
27 changed files with 58 additions and 45 deletions
View File
+6
View File
@@ -0,0 +1,6 @@
from django.apps import AppConfig
class PingConfig(AppConfig):
default_auto_field = "django.db.models.BigAutoField"
name = "api.ping"
+7
View File
@@ -0,0 +1,7 @@
from django.urls import path
import api.ping.views
urlpatterns = [
path("", api.ping.views.PingView.as_view(), name="ping"),
]
+9
View File
@@ -0,0 +1,9 @@
from rest_framework import status
from rest_framework.response import Response
from rest_framework.views import APIView
class PingView(APIView):
def get(self, request):
data = {"message": "ok"}
return Response(data, status=status.HTTP_200_OK)