tubesync/app/sync/urls.py

71 lines
1.4 KiB
Python
Raw Normal View History

2020-11-23 06:32:02 +00:00
from django.urls import path
2020-11-26 05:01:47 +00:00
from .views import (DashboardView, SourcesView, ValidateSourceView, AddSourceView,
SourceView, UpdateSourceView, DeleteSourceView, MediaView,
2020-12-06 01:22:16 +00:00
MediaThumbView, MediaItemView, TasksView, LogsView)
2020-11-23 06:32:02 +00:00
app_name = 'sync'
urlpatterns = [
2020-11-28 05:58:23 +00:00
# Dashboard URLs
2020-11-23 06:32:02 +00:00
path('',
2020-11-26 03:03:55 +00:00
DashboardView.as_view(),
name='dashboard'),
2020-11-28 05:58:23 +00:00
# Source URLs
2020-11-26 03:03:55 +00:00
path('sources',
SourcesView.as_view(),
name='sources'),
2020-11-28 05:58:23 +00:00
path('source-validate/<slug:source_type>',
2020-11-26 03:03:55 +00:00
ValidateSourceView.as_view(),
name='validate-source'),
2020-11-28 05:58:23 +00:00
path('source-add',
2020-11-26 05:01:47 +00:00
AddSourceView.as_view(),
name='add-source'),
2020-11-28 03:41:17 +00:00
path('source/<uuid:pk>',
SourceView.as_view(),
name='source'),
2020-11-28 05:58:23 +00:00
path('source-update/<uuid:pk>',
UpdateSourceView.as_view(),
name='update-source'),
path('source-delete/<uuid:pk>',
DeleteSourceView.as_view(),
name='delete-source'),
2020-11-28 05:58:23 +00:00
2020-12-06 01:22:16 +00:00
# Media URLs
2020-12-06 01:22:16 +00:00
path('media',
2020-11-26 03:03:55 +00:00
MediaView.as_view(),
name='media'),
2020-12-06 01:22:16 +00:00
path('media-thumb/<uuid:pk>',
MediaThumbView.as_view(),
name='media-thumb'),
path('media-item/<uuid:pk>',
MediaItemView.as_view(),
name='media-item'),
2020-11-28 05:58:23 +00:00
# Task URLs
2020-11-26 03:03:55 +00:00
path('tasks',
TasksView.as_view(),
name='tasks'),
2020-11-28 05:58:23 +00:00
# Log URLs
2020-11-26 03:03:55 +00:00
path('logs',
LogsView.as_view(),
name='logs'),
2020-11-23 06:32:02 +00:00
]