ptrad
[redakcja.git] / src / wiki / 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('edit/<slug:slug>/<slug:chunk>/', views.editor, name="wiki_editor"),
10     path('edit/<slug:slug>/', views.editor, name="wiki_editor"),
11
12     path('readonly/<slug:slug>/<slug:chunk>/',
13          views.editor_readonly, name="wiki_editor_readonly"),
14     path('readonly/<slug:slug>/',
15          views.editor_readonly, name="wiki_editor_readonly"),
16
17     path('gallery/<directory>/', views.gallery, name="wiki_gallery"),
18     path('scans/<str:pks>/', views.scans_list, name="wiki_scans"),
19     path('history/<int:chunk_id>/', views.history, name="wiki_history"),
20     path('rev/<int:chunk_id>/', views.revision, name="wiki_revision"),
21     path('text/<int:chunk_id>/', views.text, name="wiki_text"),
22     path('revert/<int:chunk_id>/', views.revert, name='wiki_revert'),
23     path('diff/<int:chunk_id>/', views.diff, name="wiki_diff"),
24     path('pubmark/<int:chunk_id>/', views.pubmark, name="wiki_pubmark"),
25     path('galleries/', views.galleries),
26     path('set-gallery/<int:chunk_id>/', views.set_gallery),
27     path('set-gallery-start/<int:chunk_id>/', views.set_gallery_start),
28     path('themes', views.themes, name="themes"),
29     path('back/', views.back),
30     path('editor-user-area/', views.editor_user_area),
31 ]