|
|
|
@ -75,6 +75,7 @@ r = {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# TODO: get data from client
|
|
|
|
|
@app.route("/", methods=["GET", "POST"])
|
|
|
|
|
def home():
|
|
|
|
|
if request.method == "POST":
|
|
|
|
@ -85,7 +86,6 @@ def home():
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# return the list of recipes in JSON format
|
|
|
|
|
# TODO: get data from client
|
|
|
|
|
@app.route("/get")
|
|
|
|
|
def get():
|
|
|
|
|
recipes = get_recipes()
|
|
|
|
|