Add missing endpoints
This commit is contained in:
parent
8238e9555a
commit
9f4e06d7f9
1 changed files with 19 additions and 1 deletions
20
app.py
20
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')
|
||||
|
|
Loading…
Reference in a new issue