def decorated_view(*args, **kwargs):
    value = kwargs['value']
if value == 'foobar':
    abort(400)
return fn(*args, **kwargs)
return decorated_view

@app.route('/<value>')
@foobar
def view(value):
    return value
How can a Flask decorator have arguments?