21 lines
774 B
Python
21 lines
774 B
Python
"""Blueprint registration module."""
|
|
from flask import Flask
|
|
|
|
from .main import bp as main_bp
|
|
from .papers import bp as papers_bp
|
|
from .upload import bp as upload_bp
|
|
from .logger import bp as logger_bp
|
|
from .api import bp as api_bp
|
|
from .scraper import bp as scraper_bp
|
|
from .config import bp as config_bp
|
|
|
|
|
|
def register_blueprints(app: Flask):
|
|
"""Register all blueprints with the Flask application."""
|
|
app.register_blueprint(main_bp)
|
|
app.register_blueprint(papers_bp, url_prefix='/papers')
|
|
app.register_blueprint(upload_bp, url_prefix='/upload')
|
|
app.register_blueprint(logger_bp, url_prefix='/logs')
|
|
app.register_blueprint(api_bp, url_prefix='/api')
|
|
app.register_blueprint(scraper_bp, url_prefix='/scraper')
|
|
app.register_blueprint(config_bp) |