[chore] Global project refactoring
This commit is contained in:
1 parent
0a8b3773f5
commit
5c64e1f3b9
49 files changed
+731
-496
No files matched your search
Whitespace-only changes.
@@ -0,0 +1,6 @@
|
||||
from django.apps import AppConfig
|
||||
|
||||
|
||||
class PingConfig(AppConfig):
|
||||
default_auto_field = "django.db.models.BigAutoField"
|
||||
name = "api.ping"
|
||||
@@ -0,0 +1,7 @@
|
||||
from django.urls import path
|
||||
|
||||
import api.ping.views
|
||||
|
||||
urlpatterns = [
|
||||
path("", api.ping.views.PingApiView.as_view(), name="ping"),
|
||||
]
|
||||
@@ -0,0 +1,9 @@
|
||||
from rest_framework import status
|
||||
from rest_framework.response import Response
|
||||
from rest_framework.views import APIView
|
||||
|
||||
|
||||
class PingApiView(APIView):
|
||||
def get(self, request): # noqa: ARG002
|
||||
data = "ok"
|
||||
return Response(data, status=status.HTTP_200_OK)
|
||||
Reference in new issue
Block a user