Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
feudal
feudalBackend
Commits
6fb2a408
Commit
6fb2a408
authored
Jan 16, 2020
by
Lukas Burgey
Browse files
Remove trailing slash from rest/ url
parent
a8c6c9e1
Changes
2
Hide whitespace changes
Inline
Side-by-side
feudal/backend/urls.py
View file @
6fb2a408
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
.views.rest
import
URLPATTERNS
as
user_rest_urls
from
.views.rest
import
HelpView
from
.auth.v1.urls
import
URLPATTERNS
as
auth_urls
# used in tests
...
...
@@ -13,7 +14,10 @@ API_PATH = 'user-api'
URLPATTERNS
=
[
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
)),
path
(
'admin/'
,
admin
.
site
.
urls
),
]
feudal/backend/views/rest.py
View file @
6fb2a408
...
...
@@ -234,6 +234,7 @@ class DeploymentStateView(generics.RetrieveUpdateAPIView):
state
.
answers_changed
()
# the HelpView is included one level above
URLPATTERNS
=
[
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
()),
]
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment