i didn't mean to include that in the previous commit!
This commit is contained in:
parent
f7ea8e18bf
commit
27c0369b94
|
@ -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_
|
||||
|
||||
|
|
Loading…
Reference in New Issue