portier/source/config/urls.py

25 lines
1.4 KiB
Python

from django.urls import path
from config.views import restream, stream, pull
from config.views.srs import callback_srs
app_name = 'config'
urlpatterns = [
path('srs/callback', callback_srs, name='callback_srs'),
path('streams/', stream.StreamList.as_view(), name='stream_list'),
path('streams/<int:pk>/', stream.StreamDetail.as_view(), name='stream_detail'),
path('streams/<int:pk>/change', stream.StreamChange.as_view(), name='stream_change'),
path('streams/<int:pk>/delete', stream.StreamDelete.as_view(), name='stream_delete'),
path('streams/create', stream.StreamCreate.as_view(), name='stream_create'),
path('restream/', restream.RestreamList.as_view(), name='restream_list'),
path('restream/<int:pk>/', restream.RestreamDetail.as_view(), name='restream_detail'),
path('restream/<int:pk>/change', restream.RestreamUpdate.as_view(), name='restream_change'),
path('restream/<int:pk>/delete', restream.RestreamDelete.as_view(), name='restream_delete'),
path('restream/create', restream.RestreamCreate.as_view(), name='restream_create'),
path('pull/', pull.PullList.as_view(), name='pull_list'),
path('pull/<int:pk>/', pull.PullDetail.as_view(), name='pull_detail'),
path('pull/<int:pk>/change', pull.PullUpdate.as_view(), name='pull_change'),
path('pull/<int:pk>/delete', pull.PullDelete.as_view(), name='pull_delete'),
path('pull/create', pull.PullCreate.as_view(), name='pull_create'),
]