dockerfile, api: Yangi loyiha uchun Dockerfile va Django API modullarini qo'shish. Kiritilgan fayllar: requirements.txt, admin.py, models.py, tests.py va boshqalar.
This commit is contained in:
7
template/api/views.py
Normal file
7
template/api/views.py
Normal file
@@ -0,0 +1,7 @@
|
||||
from rest_framework.views import APIView
|
||||
from rest_framework.response import Response
|
||||
|
||||
|
||||
class HealthView(APIView):
|
||||
def get(self, *args, **kwargs):
|
||||
return Response(data={"detail": "OK"})
|
||||
Reference in New Issue
Block a user