Fix photo upload from wikidata.
[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('history/<int:chunk_id>/', views.history, name="wiki_history"),
19     path('rev/<int:chunk_id>/', views.revision, name="wiki_revision"),
20     path('text/<int:chunk_id>/', views.text, name="wiki_text"),
21     path('revert/<int:chunk_id>/', views.revert, name='wiki_revert'),
22     path('diff/<int:chunk_id>/', views.diff, name="wiki_diff"),
23     path('pubmark/<int:chunk_id>/', views.pubmark, name="wiki_pubmark"),
24     path('themes', views.themes, name="themes"),
25     path('back/', views.back),
26     path('editor-user-area/', views.editor_user_area),
27 ]