from flask import Flask
from route import app_route
app = Flask(__name__)
app.register_blueprint(app_route)
if __name__ == '__main__':
app.run(debug=True)
from flask import Blueprint
app_route = Blueprint('route', __name__)
@app_route.route('/')
def index():
return 'Hello world!'