From 9f4e06d7f9240b437a4eff403a78ee984c0bb9d9 Mon Sep 17 00:00:00 2001 From: "Simon V. Lejel" Date: Fri, 11 Mar 2022 18:12:19 +0100 Subject: [PATCH] Add missing endpoints --- app.py | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/app.py b/app.py index de3ce5f..9118387 100644 --- a/app.py +++ b/app.py @@ -4,8 +4,26 @@ app = Flask(__name__) @app.route('/') -def hello_world(): # put application's code here +def home(): # put application's code here return render_template('home.html') + +@app.route('/random') +def random_image(): + # TODO Implement + return NotImplementedError + + +@app.route('/daily') +def daily_image(): + # TODO Implement + return NotImplementedError + + +@app.route('/all') +def all_images(): + # TODO Implement + return NotImplementedError + if __name__ == '__main__': app.run(host='0.0.0.0')