30 lines
503 B
Python
30 lines
503 B
Python
from flask import Flask, render_template
|
|
|
|
app = Flask(__name__)
|
|
|
|
|
|
@app.route('/')
|
|
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')
|