Add missing endpoints

This commit is contained in:
Simon V. Lejel 2022-03-11 18:12:19 +01:00
parent 8238e9555a
commit 9f4e06d7f9

20
app.py
View file

@ -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')