i didn't mean to include that in the previous commit!

This commit is contained in:
codl 2017-09-09 00:52:05 +02:00
parent f7ea8e18bf
commit 27c0369b94
No known key found for this signature in database
GPG Key ID: 6CD7C8891ED1233A
1 changed files with 3 additions and 4 deletions

View File

@ -13,10 +13,9 @@ def app(redisdb):
app_.config['REDIS_URI'] = 'redis://localhost:15487'
app_.debug = True
@app_.route('/', defaults={'name': 'world'})
@app_.route('/<name>')
def hello(name='world'):
return 'Hello, {name}!'.format(name=name)
@app_.route('/')
def hello():
return 'Hello, world!'
with app_.app_context():
yield app_