mirror of
https://github.com/Dispatcharr/Dispatcharr.git
synced 2026-01-23 10:45:27 +00:00
19 lines
809 B
Python
19 lines
809 B
Python
from django.urls import path, include
|
|
from rest_framework.routers import DefaultRouter
|
|
from .api_views import HDHRDeviceViewSet, DiscoverAPIView, LineupAPIView, LineupStatusAPIView, HDHRDeviceXMLAPIView, hdhr_dashboard_view
|
|
|
|
app_name = 'hdhr'
|
|
|
|
router = DefaultRouter()
|
|
router.register(r'devices', HDHRDeviceViewSet, basename='hdhr-device')
|
|
|
|
urlpatterns = [
|
|
path('dashboard/', hdhr_dashboard_view, name='hdhr_dashboard'),
|
|
path('', hdhr_dashboard_view, name='hdhr_dashboard'),
|
|
path('discover.json', DiscoverAPIView.as_view(), name='discover'),
|
|
path('lineup.json', LineupAPIView.as_view(), name='lineup'),
|
|
path('lineup_status.json', LineupStatusAPIView.as_view(), name='lineup_status'),
|
|
path('device.xml', HDHRDeviceXMLAPIView.as_view(), name='device_xml'),
|
|
]
|
|
|
|
urlpatterns += router.urls
|