mirror of
https://github.com/MOIS3Y/logs-collector.git
synced 2025-09-13 05:03:01 +02:00
Modify: disable basic auth in API add protection to storage info endpoint
This commit is contained in:
@@ -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'
|
||||
|
Reference in New Issue
Block a user