| TRM-coding | d1cbf67 | 2025-06-18 15:15:08 +0800 | [diff] [blame] | 1 | from flask import Flask |
| 2 | |||||
| 3 | def create_app(): | ||||
| 4 | app = Flask(__name__) | ||||
| 5 | |||||
| 6 | # Load configuration | ||||
| 7 | app.config.from_object('config.Config') | ||||
| 8 | |||||
| 9 | # Register blueprints or routes | ||||
| 10 | from .routes import main as main_blueprint | ||||
| 11 | app.register_blueprint(main_blueprint) | ||||
| 12 | |||||
| 13 | return app | ||||
| 14 | |||||
| 15 | app = create_app() | ||||