Commit e343eeb6 authored by BAIRE Anthony's avatar BAIRE Anthony
Browse files

remove superfluous ending slashes in urls

By convention urls ending with a '/' are meant for listing a directory.
Thus it is menaningful to put a slash on all urls that list resources
(i.e. XxxxxList views) but not on simple actions on a resource (eg:
update, delete, ...).
parent 00bde819
Pipeline #40258 failed with stage
in 1 minute and 18 seconds
......@@ -49,31 +49,31 @@ urlpatterns = [
url(r'^apps/$', views.WebappList.as_view(), name='webapp_list'),
url(r'^apps/_authors/(?P<username>[\w.@+-]+)/$', views.UserWebappList.as_view(), name='user_webapp_list'),
url(r'^apps/_create/$', views.WebappCreate.as_view(), name='webapp_creation'),
url(r'^apps/(?P<docker_name>[\w-]+)/update/$', views.WebappUpdate.as_view(), name="webapp_update"),
url(r'^apps/(?P<docker_name>[\w-]+)/sandbox/$', views.WebappSandboxPanel.as_view(), name="webapp_sandbox_panel"),
url(r'^apps/(?P<docker_name>[\w-]+)/update$', views.WebappUpdate.as_view(), name="webapp_update"),
url(r'^apps/(?P<docker_name>[\w-]+)/sandbox$', views.WebappSandboxPanel.as_view(), name="webapp_sandbox_panel"),
url(r'^apps/(?P<docker_name>[\w-]+)/json$', views.WebappJson.as_view(), name='webapp_json'),
url(r'^apps/(?P<docker_name>[\w-]+)/$', views.JobCreate.as_view(), name='webapp_detail'),
url(r'^apps/(?P<docker_name>[\w-]+)$', views.JobCreate.as_view(), name='webapp_detail'),
url(r'^tags/$', views.TagList.as_view(), name='tag_list'),
url(r'^tags/(?P<slug>[\w-]+)$', views.TagWebappList.as_view(), name='tag_webapp_list'),
url(r'^jobs/$', views.JobList.as_view(), name='job_list'),
url(r'^jobs/(?P<pk>\d+)/$', views.JobDetail.as_view(), name='job_detail'),
url(r'^jobs/(?P<pk>\d+)/abort/$', views.JobAbort.as_view(), name='job_abort'),
url(r'^jobs/(?P<pk>\d+)/delete/$', views.JobDelete.as_view(), name='job_delete'),
url(r'^jobs/(?P<pk>\d+)$', views.JobDetail.as_view(), name='job_detail'),
url(r'^jobs/(?P<pk>\d+)/abort$', views.JobAbort.as_view(), name='job_abort'),
url(r'^jobs/(?P<pk>\d+)/delete$', views.JobDelete.as_view(), name='job_delete'),
url(r'^jobs/(?P<pk>\d+)/archive$', views.JobFileDownloadAll.as_view(), name='job_download_all'),
url(r'^jobs/(?P<pk>\d+)/download/(?P<filename>(.*))$', views.JobFileDownload.as_view(), name='job_download_file'),
url(r'^profile/$', views.UserUpdate.as_view(), name='user_detail'),
url(r'^profile$', views.UserUpdate.as_view(), name='user_detail'),
url(r'^profile/token/update$', views.UserToken.as_view(), name='user_token'),
url(r'^profile/ssh/add/$', views.UserSSHAdd.as_view(), name='user_ssh_add'),
url(r'^profile/ssh/delete/$', views.UserSSHDelete.as_view(), name='user_ssh_delete'),
url(r'^profile/ssh/add$', views.UserSSHAdd.as_view(), name='user_ssh_add'),
url(r'^profile/ssh/delete$', views.UserSSHDelete.as_view(), name='user_ssh_delete'),
url(r'^profile/password$', views.UserPasswordUpdate.as_view(), name='user_password'),
# url(r'^runners/$', views.RunnerList.as_view(), name='runner_list'),
# url(r'^runners/_add/$', views.RunnerCreate.as_view(), name='runner_create'),
# url(r'^runners/(?P<pk>\d+)/update/$', views.RunnerUpdate.as_view(), name='runner_update'),
# url(r'^runners/(?P<pk>\d+)/delete/$', views.RunnerDelete.as_view(), name='runner_delete'),
# url(r'^runners/_add$', views.RunnerCreate.as_view(), name='runner_create'),
# url(r'^runners/(?P<pk>\d+)/update$', views.RunnerUpdate.as_view(), name='runner_update'),
# url(r'^runners/(?P<pk>\d+)/delete$', views.RunnerDelete.as_view(), name='runner_delete'),
url(r'^auth$', views.auth, name="auth"),
......
Supports Markdown
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