主要更新: - 新增 security/ 安全模块 (风险评估、威胁检测、蜜罐等) - Dockerfile 添加 curl 以支持 Docker 健康检查 - 前端页面更新 (管理后台、用户端) - 数据库迁移和 schema 更新 - 新增 kdocs 上传服务 - 添加安全相关测试用例 Co-Authored-By: Claude <noreply@anthropic.com>
14 lines
408 B
Python
14 lines
408 B
Python
#!/usr/bin/env python3
|
|
# -*- coding: utf-8 -*-
|
|
from __future__ import annotations
|
|
|
|
from flask import Blueprint
|
|
|
|
admin_api_bp = Blueprint("admin_api", __name__, url_prefix="/yuyx/api")
|
|
|
|
# Import side effects: register routes on blueprint
|
|
from routes.admin_api import core as _core # noqa: F401
|
|
|
|
# Export security blueprint for app registration
|
|
from routes.admin_api.security import security_bp # noqa: F401
|