Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
nopaque
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
Looking for advice? Join the
Matrix channel for GitLab users in Bielefeld
!
Show more breadcrumbs
SFB 1288 - INF
nopaque
Commits
0d96a572
Commit
0d96a572
authored
3 years ago
by
Patrick Jentsch
Browse files
Options
Downloads
Patches
Plain Diff
Change api root routes, so that they don't have a trailing slash
parent
5469bd0e
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
app/api/jobs.py
+1
-1
1 addition, 1 deletion
app/api/jobs.py
app/api/tokens.py
+1
-1
1 addition, 1 deletion
app/api/tokens.py
with
2 additions
and
2 deletions
app/api/jobs.py
+
1
−
1
View file @
0d96a572
...
@@ -7,7 +7,7 @@ from ..models import Job
...
@@ -7,7 +7,7 @@ from ..models import Job
ns
=
Namespace
(
'
jobs
'
,
description
=
'
Job operations
'
)
ns
=
Namespace
(
'
jobs
'
,
description
=
'
Job operations
'
)
@ns.route
(
'
/
'
)
@ns.route
(
''
)
class
API_Jobs
(
Resource
):
class
API_Jobs
(
Resource
):
'''
Shows a list of all jobs and lets you POST to add new job
'''
'''
Shows a list of all jobs and lets you POST to add new job
'''
...
...
This diff is collapsed.
Click to expand it.
app/api/tokens.py
+
1
−
1
View file @
0d96a572
...
@@ -6,7 +6,7 @@ from .. import db
...
@@ -6,7 +6,7 @@ from .. import db
ns
=
Namespace
(
'
tokens
'
,
description
=
'
Token operations
'
)
ns
=
Namespace
(
'
tokens
'
,
description
=
'
Token operations
'
)
@ns.route
(
'
/
'
)
@ns.route
(
''
)
class
API_Tokens
(
Resource
):
class
API_Tokens
(
Resource
):
'''
Get or revoke a user authentication token
'''
'''
Get or revoke a user authentication token
'''
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment