2018-02-17 20:21:08 +00:00
|
|
|
from django.conf.urls import url
|
2018-05-17 21:39:34 +00:00
|
|
|
from rest_framework import routers
|
2018-02-27 21:38:55 +00:00
|
|
|
|
2018-02-17 20:21:08 +00:00
|
|
|
from . import views
|
2018-06-09 13:36:16 +00:00
|
|
|
|
2018-05-17 21:39:34 +00:00
|
|
|
admin_router = routers.SimpleRouter()
|
2018-06-09 13:36:16 +00:00
|
|
|
admin_router.register(r"admin/settings", views.AdminSettings, "admin-settings")
|
2018-02-17 20:21:08 +00:00
|
|
|
|
|
|
|
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"),
|
2018-05-17 21:39:34 +00:00
|
|
|
] + admin_router.urls
|