|
|
@ -110,7 +110,6 @@ def update_wiki(recipe):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# TODO: get data from client
|
|
|
|
|
|
|
|
@app.route("/", methods=["GET", "POST"])
|
|
|
|
@app.route("/", methods=["GET", "POST"])
|
|
|
|
def home():
|
|
|
|
def home():
|
|
|
|
if request.method == "POST":
|
|
|
|
if request.method == "POST":
|
|
|
@ -127,6 +126,4 @@ def get():
|
|
|
|
recipes = get_recipes()
|
|
|
|
recipes = get_recipes()
|
|
|
|
return jsonify(recipes)
|
|
|
|
return jsonify(recipes)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# TODO: set another port and setup nginx
|
|
|
|
|
|
|
|
app.run(port=3145)
|
|
|
|
app.run(port=3145)
|
|
|
|