Skip to content

Commit 5df3602

Browse files
Added Bottle() constructor
1 parent 26358e5 commit 5df3602

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

app.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
from bottle import route, run
2-
3-
@route('/hello')
1+
from bottle import Bottle, run
2+
app=Bottle()
3+
@app.route('/hello')
44
def hello():
55
return "<h1>Hello World</h1>"
66

7-
run(host='localhost', port=5555, debug=True)
7+
run(app, host='localhost', port=5556, debug=True)

0 commit comments

Comments
 (0)