from my_modules.app.setup import cache, LIMITER
from my_modules.app.constens import API_GROUP
from my_modules.app.logger import logger
from .handeling.errorsAndBots import auth_error

from .handeling.basics import basic_bp

from quart_common.routes.login import create_auth_login_blueprint
auth_login_bp = create_auth_login_blueprint(
  cache=cache,
  limiter=LIMITER,
  logger=logger,
  api_group=API_GROUP,
  auth_error_fn=auth_error,
  redirect_endpoint='side_main.index',
)

from .side.main import side_main_bp

from .side.upload import upload_bp
from .side.link_composer import link_composer_bp

from .api.cli_auth import cli_auth_bp
from .api.download import api_download_bp
from .api.events import api_events_bp

# Health
from .api.health import health_bp
