Skip to content

Commit 37bd511

Browse files
committed
Added decorators for rest_framework authentication and permission classes
1 parent 4663da8 commit 37bd511

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

server/api/healthcheck/views.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
from rest_framework.decorators import api_view
1+
from rest_framework.decorators import api_view, authentication_classes, permission_classes
22

33
from django.http import HttpResponse
44

55

66
# Create your views here.
77
@api_view(["GET"])
8+
@authentication_classes([])
9+
@permission_classes([])
810
def ping(request):
911
return HttpResponse("Pong!", status=200)

0 commit comments

Comments
 (0)