title: Flask: get current route
body: <p>In Flask, when I have several routes for the same function,
  how can I know which route is used at the moment?</p>
  <p>For example:</p>
  <pre><code>@app.route(&quot;/antitop/&quot;)
  @app.route(&quot;/top/&quot;)
  @requires_auth
  def show_top():
      ....
  </code></pre>
  <p>How can I know, that now route was called using <code>/top/</code> or <code>/antitop/</code>?</p>
  <p><strong>UPDATE</strong></p>
  <p>I know about <code>request.path</code> I don't want use it, because the request can be rather complex, and I want repeat the routing logic in the function. I think that the solution with <code>url_rule</code> it the best one.</p>