title: Flask - function mapping is overwriting an existing endpoint function
body: <p>I am trying to get the flask framework to work with Facebook.  I'm doing this with flask_canvas.  I followed the example for flask_canvas in the documentation (found here: <a href="http://flask-canvas.readthedocs.org/en/latest/" rel="noreferrer">http://flask-canvas.readthedocs.org/en/latest/</a>) but I keep getting the following error:</p>
  
  <pre><code>AssertionError: View function mapping is overwriting an existing endpoint function: inner
  </code></pre>
  
  <p>If I comment out the method <code>user()</code>, it will run, but when that method is not commented out, I get the above error.  </p>
  
  <p>Any idea how to make it so I can have both the <code>canvas()</code> and <code>user()</code> methods without getting an <code>AssertionError</code> thrown?</p>
  
  <pre><code>import flask_canvas
  from flask import Flask, session, redirect
  app = Flask(__name__)
  flask_canvas.install(app)
  
  HOST = 'localhost'
  PORT = 8000
  
  @app.route('/')
  def hello_world():
      return 'Hello World!'
  
  # route your canvas-specific page
  @app.canvas_route('/app/', methods=['GET','POST'])
  def canvas():
      return 'hello, world'
  
   #route page requiring user data
  @app.canvas_route('/user/', methods=['GET','POST'])
  def user(canvas_user):
      return canvas_user.request('/me')
  
  if __name__ == '__main__':
      app.run(host = HOST, port = PORT, debug = True)
  </code></pre>