From 99c8a44c1ffcff8fcbd2b60fde981ca6bbcfcf8d Mon Sep 17 00:00:00 2001 From: amantahiliani Date: Mon, 8 Apr 2024 16:05:56 -0400 Subject: [PATCH] Added authentication to file fetching API --- backend/api/views.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/api/views.py b/backend/api/views.py index 9e91f6e..5ef87b6 100644 --- a/backend/api/views.py +++ b/backend/api/views.py @@ -179,6 +179,8 @@ class RegisterFile(APIView): class FileFilterView(APIView): + authentication_classes = [TokenAuthentication] + permission_classes = [IsAuthenticated] def get(self, request, format=None): try: # Extract filters from the query parameters