vioott's picture
build(app): add main entry point for local and production runs
03f7d90
raw
history blame
360 Bytes
from flask import Flask
from routes.home import home_bp
from routes.chat import chat_bp
from routes.profile import profile_bp
app = Flask(__name__)
app.register_blueprint(home_bp)
app.register_blueprint(chat_bp)
app.register_blueprint(profile_bp)
def create_app():
return app
if __name__ == '__main__':
app = create_app()
app.run(debug=True)