title: Flask blueprint doesn't work without prefix
body: <p>Hi I have a Flask app structured in following way and I have problem with blueprints setup. Whatever I do, they only work with <code>url_prefix</code> set up. It works currently as <code>/main/verify</code> but as it is a small app I would love to have an endpoint like <code>/verify</code>. What's interesting I managed to make it work with <code>/</code> route, but for the same configuration it didn't work for the <code>/verify</code>. I am pretty clueless right now, I can live with it as it is, but I really wonder what am I doing wrong. </p>
  
  <p>Here is the code:</p>
  
  <p><code>__init__.py</code></p>
  
  <pre><code>from flask import Flask
  from flask_sqlalchemy import SQLAlchemy
  from config import config
  
  
  db = SQLAlchemy()
  
  
  def create_app(config_name):
      app = Flask(__name__)
      app.config.from_object(config[config_name])
      config[config_name].init_app(app)
  
      db.init_app(app)
  
      from main import main
      app.register_blueprint(main)
  
      return app
  </code></pre>
  
  <p><code>main/__init__.py</code></p>
  
  <pre><code>from flask import Blueprint
  main = Blueprint('main', __name__, url_prefix='/main')
  from . import views
  </code></pre>
  
  <p><code>main/views.py</code></p>
  
  <pre><code>from flask import request, jsonify
  from . import main
  
  
  @main.route('/')
  def index():
      return "Hello world"
  
  
  @main.route('/verify')
  def verify():
      url = request.args['url']
      query = request.args['query']
  
      return jsonify({ ... })
  </code></pre>