wrapper.__name__ = func.__name__
return wrapper

@app.route('/foo')
@wrapper_name
def foo():
    return 'This gets passed to rv'
Python Flask after_request and before_request for a specific set of request