aboutsummaryrefslogtreecommitdiff
path: root/api/user/password.py
blob: b77067f2c8fc3d30dfdc3ecf7c4b37086372215a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
from flask import Blueprint, request
from db import cursor

password = Blueprint('password', __name__)


# this endpoint is unfinished
@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]