mirror of
				https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
				synced 2025-11-03 20:02:47 +00:00 
			
		
		
		
	Change api root routes, so that they don't have a trailing slash
This commit is contained in:
		@@ -7,7 +7,7 @@ from ..models import Job
 | 
			
		||||
ns = Namespace('jobs', description='Job operations')
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ns.route('/')
 | 
			
		||||
@ns.route('')
 | 
			
		||||
class API_Jobs(Resource):
 | 
			
		||||
    '''Shows a list of all jobs and lets you POST to add new job'''
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -6,7 +6,7 @@ from .. import db
 | 
			
		||||
ns = Namespace('tokens', description='Token operations')
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ns.route('/')
 | 
			
		||||
@ns.route('')
 | 
			
		||||
class API_Tokens(Resource):
 | 
			
		||||
    '''Get or revoke a user authentication token'''
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user