oops
This commit is contained in:
parent
4d0f81dfa7
commit
ce672b6bd3
1 changed files with 4 additions and 1 deletions
|
@ -10,4 +10,7 @@ def index():
|
||||||
@app.route('/fortune')
|
@app.route('/fortune')
|
||||||
def fortune():
|
def fortune():
|
||||||
fortune = os.run('/usr/bin/fortune')
|
fortune = os.run('/usr/bin/fortune')
|
||||||
return render_template('fortune.j2', fortune=fortune)
|
return render_template('fortune.j2', fortune=fortune)
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
app.run(host="0.0.0.0", port=8080)
|
Loading…
Add table
Reference in a new issue