do not check permissions in api v1 as they are checked by nginx already

This commit is contained in:
j3d1 2023-11-20 06:46:43 +01:00
parent 7369db8512
commit dedf98a12e
2 changed files with 14 additions and 2 deletions

View file

@ -1,10 +1,12 @@
from rest_framework.decorators import api_view
from rest_framework.decorators import api_view, permission_classes, authentication_classes
from rest_framework.response import Response
from .settings import SYSTEM3_VERSION
@api_view(['GET'])
@permission_classes([])
@authentication_classes([])
def get_info(request):
return Response({
"framework_version": SYSTEM3_VERSION,