From 55937059fd90f447bbbc2720c4edd3092bcf02ca Mon Sep 17 00:00:00 2001 From: ale <ale@incal.net> Date: Sun, 24 Nov 2019 22:04:46 +0000 Subject: [PATCH] Rename the API endpoint to make it similar to python-mailman-api --- mysql_api/mysql_api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mysql_api/mysql_api.py b/mysql_api/mysql_api.py index d7ad81e..65d722f 100644 --- a/mysql_api/mysql_api.py +++ b/mysql_api/mysql_api.py @@ -47,7 +47,7 @@ def _connect(host='localhost', dbname=None, return c.cursor(cursor_class) -@app.route('/api/reset_password', methods=('POST',)) +@app.route('/api/pwreset', methods=('POST',)) @tls_auth @sso_api_auth_required @to_json -- GitLab