mirror of
https://github.com/AmanTahiliani/PeerNotes.git
synced 2026-12-05 07:14:41 -05:00
Added authentication to file fetching API
This commit is contained in:
1 parent
b3c4f7f2e8
commit
99c8a44c1f
1 file changed
+2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user