JS-P04/app/urls.py
Kacper Donat 3a649df550 Whole app
2020-06-08 22:46:01 +02:00

16 lines
792 B
Python

from django.urls import path
from . import views
urlpatterns = [
path('', views.albums, name='index'),
path('register', views.register, name='register'),
path('add', views.add_album, name='add_album'),
path('album/<int:album_id>', views.photos, name='album'),
path('album/<int:album_id>/edit', views.edit_album, name='edit_album'),
path('album/<int:album_id>/delete', views.delete_album, name='delete_album'),
path('album/<int:album_id>/photo/<int:photo_id>', views.photo, name='photo'),
path('album/<int:album_id>/photo/<int:photo_id>/edit', views.edit_photo, name='edit_photo'),
path('album/<int:album_id>/photo/<int:photo_id>/delete', views.delete_photo, name='delete_photo'),
path('album/<int:album_id>/add', views.add_photo, name='add_photo'),
]