thewellermangroup
commited on
Commit
•
71d8030
1
Parent(s):
d12b8d2
Update app.py
Browse files
app.py
CHANGED
@@ -13,10 +13,11 @@ app = flask.Flask(__name__)
|
|
13 |
flask_cors.CORS(app)
|
14 |
|
15 |
# creates a API endpoint for the password input
|
16 |
-
@app.route('/api/
|
17 |
-
def password(
|
18 |
PASSWORD = os.environ.get('PASSWORD')
|
19 |
securePassword = "$"+PASSWORD
|
|
|
20 |
access = checkPassword(passwordIn, securePassword)
|
21 |
data = {}
|
22 |
|
|
|
13 |
flask_cors.CORS(app)
|
14 |
|
15 |
# creates a API endpoint for the password input
|
16 |
+
@app.route('/api/passwordinput', methods=['POST'])
|
17 |
+
def password():
|
18 |
PASSWORD = os.environ.get('PASSWORD')
|
19 |
securePassword = "$"+PASSWORD
|
20 |
+
passwordIn = flask.request.get_json()['passwordInput']
|
21 |
access = checkPassword(passwordIn, securePassword)
|
22 |
data = {}
|
23 |
|