From b56d17983facdbe29f397c08b7b14ac3ff783a88 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Mon, 8 Mar 2021 09:45:50 +0100 Subject: user/password beginsels --- api/user/password.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 api/user/password.py 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] + -- cgit v1.2.3