diff options
author | lonkaars <l.leblansch@gmail.com> | 2021-03-08 09:45:50 +0100 |
---|---|---|
committer | lonkaars <l.leblansch@gmail.com> | 2021-03-08 09:45:50 +0100 |
commit | b56d17983facdbe29f397c08b7b14ac3ff783a88 (patch) | |
tree | 06a1b05d6d18c84b06896d692cc19ea4c64cc6eb | |
parent | 996f62c4e43818bf3b574d86ad19f994d727f60c (diff) |
user/password beginsels
-rw-r--r-- | api/user/password.py | 17 |
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] + |