borg-web/borgweb/borg/urls.py

14 lines
495 B
Python

from django.urls import path
from django.views.decorators.cache import cache_page
from . import views
urlpatterns = [
path('', cache_page(60)(views.index), name='index'),
path('repo/<str:repo_label>', views.repo, name='repo'),
path('post/repo', views.post_repo, name='post repo'),
path('post/archive', views.post_archive, name='post archive'),
path('post/error', views.post_error, name='post error'),
path('post/location', views.post_location, name='post location'),
]