mirror of
https://github.com/AmanTahiliani/PeerNotes.git
synced 2026-08-07 11:55:12 -04:00
Added authentication to file fetching API
This commit is contained in:
@@ -179,6 +179,8 @@ class RegisterFile(APIView):
|
|||||||
|
|
||||||
|
|
||||||
class FileFilterView(APIView):
|
class FileFilterView(APIView):
|
||||||
|
authentication_classes = [TokenAuthentication]
|
||||||
|
permission_classes = [IsAuthenticated]
|
||||||
def get(self, request, format=None):
|
def get(self, request, format=None):
|
||||||
try:
|
try:
|
||||||
# Extract filters from the query parameters
|
# Extract filters from the query parameters
|
||||||
|
|||||||
Reference in New Issue
Block a user