2022-03-11 16:33:55 +01:00
|
|
|
from flask import Flask, render_template
|
|
|
|
|
|
|
|
app = Flask(__name__)
|
|
|
|
|
|
|
|
|
|
|
|
@app.route('/')
|
2022-03-11 18:12:19 +01:00
|
|
|
def home(): # put application's code here
|
2022-03-11 16:33:55 +01:00
|
|
|
return render_template('home.html')
|
|
|
|
|
2022-03-11 18:12:19 +01:00
|
|
|
|
|
|
|
@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
|
|
|
|
|
2022-03-11 20:15:34 +01:00
|
|
|
|
2022-03-11 16:33:55 +01:00
|
|
|
if __name__ == '__main__':
|
|
|
|
app.run(host='0.0.0.0')
|