You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
827 B

2 years ago
from django.urls import path
2 years ago
from leftists.views import (CoolerLoginView, LinkCreateView, LinkDeleteView,
LinkListView, LinkUpdateView, OverView,
ShortLinkRedirectView)
2 years ago
urlpatterns = [
path('', CoolerLoginView.as_view(), name='login'),
path('iface/overview', OverView.as_view(), name='interface.overview'),
path('iface/link/create', LinkCreateView.as_view(), name='interface.link.create'),
path('iface/link/update/<str:slug>', LinkUpdateView.as_view(), name='interface.link.update'),
path('iface/link/delete/<str:slug>', LinkDeleteView.as_view(), name='interface.link.delete'),
path('iface/<str:domain>/links', LinkListView.as_view(), name='interface.link.list'),
2 years ago
path('<str:link>', ShortLinkRedirectView.as_view(), name='link-redirect'),
]