aboutsummaryrefslogtreecommitdiff
path: root/api/user
diff options
context:
space:
mode:
authorlonkaars <l.leblansch@gmail.com>2021-03-08 09:45:50 +0100
committerlonkaars <l.leblansch@gmail.com>2021-03-08 09:45:50 +0100
commitb56d17983facdbe29f397c08b7b14ac3ff783a88 (patch)
tree06a1b05d6d18c84b06896d692cc19ea4c64cc6eb /api/user
parent996f62c4e43818bf3b574d86ad19f994d727f60c (diff)
user/password beginsels
Diffstat (limited to 'api/user')
-rw-r--r--api/user/password.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/api/user/password.py b/api/user/password.py
new file mode 100644
index 0000000..672eda4
--- /dev/null
+++ b/api/user/password.py
@@ -0,0 +1,17 @@
+from flask import Blueprint, request
+from db import cursor
+
+password = Blueprint('password', __name__)
+
+@password.route('/password')
+def index():
+ data = request.get_json()
+
+ if not data["password"] or \
+ not data["newPassword"]:
+ return "", 400
+
+ return {}, 200
+
+dynamic_route = ["/user", password]
+