Commit 6fb2a408 authored by Lukas Burgey's avatar Lukas Burgey
Browse files

Remove trailing slash from rest/ url

parent a8c6c9e1
from django.urls import include, path
from django.urls import include, path, re_path
from django.contrib import admin
from .views.clients import URLPATTERNS as clientapi_urls
from .views.webpage import URLPATTERNS as frontend_urls
from import URLPATTERNS as user_rest_urls
from import HelpView
from .auth.v1.urls import URLPATTERNS as auth_urls
# used in tests
......@@ -13,7 +14,10 @@ API_PATH = 'user-api'
path('clientapi/', include(clientapi_urls)),
path('api/', include(frontend_urls)),
path(API_PATH + '/', include(user_rest_urls)),
re_path(API_PATH + r'.*', HelpView.as_view()),
path('auth/v1/', include(auth_urls)),
......@@ -234,6 +234,7 @@ class DeploymentStateView(generics.RetrieveUpdateAPIView):
# the HelpView is included one level above
path('user', UserDeletionView.as_view()),
......@@ -252,6 +253,4 @@ URLPATTERNS = [
path('states', DeploymentStateListView.as_view()),
re_path(r'^state/(?P<id>[0-9]+)$', DeploymentStateView.as_view()),
re_path(r'.*', HelpView.as_view()),
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