funkwhale/api/funkwhale_api/instance/urls.py

13 wiersze
399 B
Python
Czysty Zwykły widok Historia

from django.conf.urls import url
from rest_framework import routers
from . import views
2018-06-09 13:36:16 +00:00
admin_router = routers.SimpleRouter()
2018-06-09 13:36:16 +00:00
admin_router.register(r"admin/settings", views.AdminSettings, "admin-settings")
urlpatterns = [
2018-06-09 13:36:16 +00:00
url(r"^nodeinfo/2.0/$", views.NodeInfo.as_view(), name="nodeinfo-2.0"),
url(r"^settings/$", views.InstanceSettings.as_view(), name="settings"),
] + admin_router.urls