error page
[redakcja.git] / src / catalogue / urls.py
1 # This file is part of FNP-Redakcja, licensed under GNU Affero GPLv3 or later.
2 # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
3 #
4 from django.urls import path
5 from . import views
6
7
8 urlpatterns = [
9     path("", views.CatalogueView.as_view(), name="catalogue"),
10     path("author/<slug:slug>/", views.AuthorView.as_view(), name="catalogue_author"),
11     path("book/<slug:slug>/", views.BookView.as_view(), name="catalogue_book"),
12     path("book/<slug:slug>.json", views.BookAPIView.as_view(), name="catalogue_book_api"),
13
14     path('terms/epoch/', views.EpochTerms.as_view()),
15     path('terms/kind/', views.KindTerms.as_view()),
16     path('terms/genre/', views.GenreTerms.as_view()),
17     path('terms/wluri/', views.WLURITerms.as_view()),
18     path('terms/book_title/', views.BookTitleTerms.as_view()),
19     path('terms/author/', views.AuthorTerms.as_view()),
20     path('terms/thema/', views.ThemaTerms.as_view()),
21
22     path('terms/editor/', views.EditorTerms.as_view()),
23
24     path('wikidata/<slug:model>/<qid>', views.WikidataView.as_view()),
25
26     path('publish/author/<int:pk>/', views.publish_author, name='catalogue_publish_author'),
27     path('publish/genre/<int:pk>/', views.publish_genre, name='catalogue_publish_genre'),
28     path('publish/kind/<int:pk>/', views.publish_kind, name='catalogue_publish_kind'),
29     path('publish/epoch/<int:pk>/', views.publish_epoch, name='catalogue_publish_epoch'),
30     path('publish/collection/<int:pk>/', views.publish_collection, name='catalogue_publish_collection'),
31 ]