tubesync/app/sync/urls.py

58 lines
1.1 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,
2020-11-28 05:58:23 +00:00
SourceView, UpdateSourceView, MediaView, 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'),
# Media URLs
2020-11-26 03:03:55 +00:00
path('media',
MediaView.as_view(),
name='media'),
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
]