065c4f9253e993f23386c500f630065eb8f692f3
[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
21     path('terms/editor/', views.EditorTerms.as_view()),
22
23     path('wikidata/<slug:model>/<qid>', views.WikidataView.as_view()),
24
25     path('publish/author/<int:pk>/', views.publish_author, name='catalogue_publish_author'),
26     path('publish/collection/<int:pk>/', views.publish_collection, name='catalogue_publish_collection'),
27 ]