#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from __future__ import annotations


def register_blueprints(app) -> None:
    from routes.admin_api import admin_api_bp
    from routes.admin_api import security_bp as admin_security_bp
    from routes.api_accounts import api_accounts_bp
    from routes.api_auth import api_auth_bp
    from routes.api_schedules import api_schedules_bp
    from routes.api_screenshots import api_screenshots_bp
    from routes.api_social import api_social_bp
    from routes.api_user import api_user_bp
    from routes.health import health_bp
    from routes.pages import pages_bp

    app.register_blueprint(pages_bp)
    app.register_blueprint(health_bp)
    app.register_blueprint(api_auth_bp)
    app.register_blueprint(api_social_bp)
    app.register_blueprint(api_user_bp)
    app.register_blueprint(api_accounts_bp)
    app.register_blueprint(api_screenshots_bp)
    app.register_blueprint(api_schedules_bp)
    app.register_blueprint(admin_api_bp)
    # Security admin APIs (support both /api/admin/* and /yuyx/api/admin/*)
    app.register_blueprint(admin_security_bp)
    app.register_blueprint(admin_security_bp, url_prefix="/yuyx", name="admin_security_yuyx")
