title: access function arguments from function decorator
body: <p>If I have a function that looks like:</p>
  
  <pre><code>@app.route('/categories/id/&lt;int:id&gt;/edit')
  @login_required
  def edit_category(id):
     #some code...
  </code></pre>
  
  <p>And the login_required decorator looks like this</p>
  
  <pre><code>def login_required(f):
     @wraps(f)
     def wrapper(*args, **kwargs):
         print id #given to edit_category by app.route decorator
         return f(*args, **kwargs)
     return wrapper
  </code></pre>
  
  <p>How do I access the id variable that is given to edit_category as an argument by the app.route decorator, from the login_required decorator?</p>