mirror of
https://github.com/tubearchivist/tubearchivist-frontend.git
synced 2024-11-17 01:20:12 +00:00
48 lines
1.3 KiB
Python
48 lines
1.3 KiB
Python
""" all home app urls """
|
|
|
|
from django.conf import settings
|
|
from django.contrib.auth.decorators import login_required
|
|
from django.contrib.auth.views import LogoutView
|
|
from django.urls import path
|
|
from home.views import (
|
|
AboutView,
|
|
ChannelIdView,
|
|
ChannelView,
|
|
DownloadView,
|
|
HomeView,
|
|
LoginView,
|
|
SettingsView,
|
|
VideoView,
|
|
process,
|
|
progress,
|
|
)
|
|
|
|
urlpatterns = [
|
|
path("", login_required(HomeView.as_view()), name="home"),
|
|
path("login/", LoginView.as_view(), name="login"),
|
|
path(
|
|
"logout/",
|
|
LogoutView.as_view(),
|
|
{"next_page": settings.LOGOUT_REDIRECT_URL},
|
|
name="logout",
|
|
),
|
|
path("about/", AboutView.as_view(), name="about"),
|
|
path(
|
|
"downloads/", login_required(DownloadView.as_view()), name="downloads"
|
|
),
|
|
path("settings/", login_required(SettingsView.as_view()), name="settings"),
|
|
path("process/", login_required(process), name="process"),
|
|
path("downloads/progress/", login_required(progress), name="progress"),
|
|
path("channel/", login_required(ChannelView.as_view()), name="channel"),
|
|
path(
|
|
"channel/<slug:channel_id_detail>/",
|
|
login_required(ChannelIdView.as_view()),
|
|
name="channel_id",
|
|
),
|
|
path(
|
|
"video/<slug:video_id>/",
|
|
login_required(VideoView.as_view()),
|
|
name="video",
|
|
),
|
|
]
|