Modify: disable basic auth in API add protection to storage info endpoint

This commit is contained in:
2023-09-08 19:34:25 +09:00
parent bfe13039a3
commit 305001c9ab
2 changed files with 4 additions and 1 deletions

View File

@@ -163,6 +163,9 @@ class TicketViewSet(viewsets.ModelViewSet):
class StorageInfo(views.APIView):
"""Info about storage total/used/free space"""
permission_classes = (IsAuthenticated, )
@extend_schema(
responses=StorageInfoSerializer,
summary='Show storage space in bytes'