Commit 96484181 authored by Samuel GAIST's avatar Samuel GAIST Committed by Samuel GAIST

[algorithms][urls] Remove paths that leads to any form of edition

parent e8484f4b
......@@ -33,20 +33,8 @@ from . import views
app_name = "algorithms"
urlpatterns = [
path("new/", views.create, name="new",),
re_path(r"^update/(?P<name>[-\w]+)/$", views.create, name="new-version",),
path("", views.public_ls, name="public-list",),
re_path(r"^(?P<author_name>\w+)/$", views.ls, name="list",),
re_path(
r"^fork/(?P<author>\w+)/(?P<name>[-\w]+)/(?P<version>\d+)/$",
views.fork,
name="fork",
),
re_path(
r"^edit/(?P<author>\w+)/(?P<name>[-\w]+)/(?P<version>\d+)/$",
views.edit,
name="edit",
),
re_path(
r"^diff/(?P<author1>\w+)/(?P<name1>[-\w]+)/(?P<version1>\d+)/(?P<author2>\w+)/(?P<name2>[-\w]+)/(?P<version2>\d+)/$",
views.diff,
......@@ -58,5 +46,4 @@ urlpatterns = [
views.view,
name="view",
),
re_path(r"^(?P<author_name>\w+)/$", views.ls, name="list",),
]
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment