Skip to content
Snippets Groups Projects
Commit 2f28ee41 authored by ale's avatar ale
Browse files

slight change in the api path

parent e74dd448
No related branches found
No related tags found
No related merge requests found
......@@ -14,7 +14,7 @@ def _auth(username, service, password, otp_token, source_ip):
return auth.authenticate(user, service, password, otp_token)
@app.route('/api/v1/auth', methods=('POST',))
@app.route('/api/1/auth', methods=('POST',))
@ratelimit(count=10, period=60, header='HTTP_X_FORWARDED_FOR')
@ratelimit(count=10, period=60, param='username')
def do_auth():
......
......@@ -3,7 +3,7 @@ from authserv.ratelimit import *
from authserv import protocol
from authserv import server
URL = '/api/v1/auth'
URL = '/api/1/auth'
class ServerTest(unittest.TestCase):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment