mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-04 08:29:17 +02:00
See #206: added API endpoint for managing settings
This commit is contained in:
parent
0dc9cdabab
commit
13c5219d71
4 changed files with 42 additions and 3 deletions
|
@ -2,6 +2,7 @@ from rest_framework import views
|
|||
from rest_framework.response import Response
|
||||
|
||||
from dynamic_preferences.api import serializers
|
||||
from dynamic_preferences.api import viewsets as preferences_viewsets
|
||||
from dynamic_preferences.registries import global_preferences_registry
|
||||
|
||||
from funkwhale_api.common import preferences
|
||||
|
@ -15,6 +16,10 @@ NODEINFO_2_CONTENT_TYPE = (
|
|||
)
|
||||
|
||||
|
||||
class AdminSettings(preferences_viewsets.GlobalPreferencesViewSet):
|
||||
pagination_class = None
|
||||
|
||||
|
||||
class InstanceSettings(views.APIView):
|
||||
permission_classes = []
|
||||
authentication_classes = []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue