11 lines
293 B
Python
Executable File
11 lines
293 B
Python
Executable File
from django.conf import settings
|
|
from rest_framework import permissions, views, response
|
|
|
|
|
|
class RootApiView(views.APIView):
|
|
permission_classes = [permissions.AllowAny]
|
|
|
|
def get(self, request):
|
|
print(request)
|
|
return response.Response({"version": settings.APP_VERSION})
|