do not check permissions in api v1 as they are checked by nginx already
This commit is contained in:
parent
7369db8512
commit
dedf98a12e
2 changed files with 14 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue