diff --git a/app.py b/app.py index 586880c..a5b4243 100644 --- a/app.py +++ b/app.py @@ -219,6 +219,11 @@ def habit_create(): errors=errors, )""" +@app.route('/check', methods=['POST']) +@login_required +def check_habit(): + habit = request.get_json()["habitId"] + return {} # Run the application if __name__ == '__main__': diff --git a/templates/index.html b/templates/index.html index 75b9c47..793b3c2 100644 --- a/templates/index.html +++ b/templates/index.html @@ -85,7 +85,7 @@ {% for habit in habits %}