16 lines
365 B
Python
16 lines
365 B
Python
from flask import Flask
|
|
from app.config.settings import Config
|
|
|
|
|
|
def create_app(config_class=Config):
|
|
app = Flask(__name__)
|
|
app.config.from_object(config_class)
|
|
|
|
from app.routes.health_routes import health_bp
|
|
from app.routes.scrape_routes import scrape_bp
|
|
|
|
app.register_blueprint(health_bp)
|
|
app.register_blueprint(scrape_bp)
|
|
|
|
return app
|