Change api root routes, so that they don't have a trailing slash

This commit is contained in:
Patrick Jentsch 2021-09-16 14:20:18 +02:00
parent 5469bd0ec1
commit 0d96a572e4
2 changed files with 2 additions and 2 deletions

View File

@ -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'''

View File

@ -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'''