X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/56145861cf5fa01c5fbb429d40242e0a16189ed1..69b332800a472211b5da70426171fa429702a273:/src/wiki_img/urls.py?ds=inline diff --git a/src/wiki_img/urls.py b/src/wiki_img/urls.py index 1bf14b8e..0c9e8482 100644 --- a/src/wiki_img/urls.py +++ b/src/wiki_img/urls.py @@ -1,24 +1,26 @@ -# -*- coding: utf-8 -from django.conf.urls import url +# This file is part of FNP-Redakcja, licensed under GNU Affero GPLv3 or later. +# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. +# +from django.urls import path from . import views urlpatterns = [ - url(r'^edit/(?P[^/]+)/$', + path('edit//', views.editor, name="wiki_img_editor"), - url(r'^readonly/(?P[^/]+)/$', + path('readonly//', views.editor_readonly, name="wiki_img_editor_readonly"), - url(r'^text/(?P\d+)/$', + path('text//', views.text, name="wiki_img_text"), - url(r'^history/(?P\d+)/$', + path('history//', views.history, name="wiki_img_history"), - url(r'^revert/(?P\d+)/$', + path('revert//', views.revert, name='wiki_img_revert'), - url(r'^diff/(?P\d+)/$', views.diff, name="wiki_img_diff"), - url(r'^pubmark/(?P\d+)/$', views.pubmark, name="wiki_img_pubmark"), + path('diff//', views.diff, name="wiki_img_diff"), + path('pubmark//', views.pubmark, name="wiki_img_pubmark"), ]