feat: initialize HTML scraper API with Flask and SeleniumBase
This commit is contained in:
15
app/__init__.py
Normal file
15
app/__init__.py
Normal file
@@ -0,0 +1,15 @@
|
||||
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
|
||||
Reference in New Issue
Block a user