mirror of
https://github.com/fastapiadmin/FastapiAdmin.git
synced 2026-09-22 13:05:18 +00:00
- 删除原有的示例模块(module_example)和AI模块(module_ai) - 在应用模块(module_application)下新增AI子模块和示例子模块 - 更新相关路由配置,移除不再使用的模块路由 - 调整定时任务模块从监控模块迁移至应用模块 - 更新前端API路径和组件文件结构 - 修正数据库表名前缀,统一使用'app_'作为应用模块表前缀
29 lines
625 B
Python
29 lines
625 B
Python
# -*- coding: utf-8 -*-
|
|
|
|
from fastapi import APIRouter
|
|
|
|
# 系统管理模块
|
|
from .module_system import SystemRouter
|
|
|
|
# 监控管理模块
|
|
from .module_monitor import MonitorRouter
|
|
|
|
# 通用模块
|
|
from .module_common import CommonRouter
|
|
|
|
# 应用模块
|
|
from .module_application import ApplicationRouter
|
|
|
|
# 代码生成模块
|
|
from .module_generator import GeneratorRouter
|
|
|
|
|
|
# 创建主路由
|
|
router = APIRouter()
|
|
|
|
# 注册各模块路由
|
|
router.include_router(SystemRouter)
|
|
router.include_router(MonitorRouter)
|
|
router.include_router(CommonRouter)
|
|
router.include_router(ApplicationRouter)
|
|
router.include_router(GeneratorRouter) |