from fastapi import APIRouter
from .articleRouter import ArticleRouter
from .blogInfoRouter import BlogInfoRouter
from .categoryRouter import CategoryRouter


# 后台管理路由
AdminRouter = APIRouter(
    prefix = "/admin",
    tags = ["Admin"],
    dependencies = []
)


# 该路由下的子路由
sub_routers = [
    ArticleRouter,
    BlogInfoRouter,
    CategoryRouter,
]

# 将子路由添加到当前路由下
for sub_router in sub_routers:
    AdminRouter.include_router(sub_router)



from fastapi import APIRouter
from .articleRouter import ArticleRouter
from .blogInfoRouter import BlogInfoRouter
from .categoryRouter import CategoryRouter


# 后台管理路由
AdminRouter = APIRouter(
    prefix = "/admin",
    tags = ["Admin"],
    dependencies = []
)


# 该路由下的子路由
sub_routers = [
    ArticleRouter,
    BlogInfoRouter,
    CategoryRouter,
]

# 将子路由添加到当前路由下
for sub_router in sub_routers:
    AdminRouter.include_router(sub_router)



# 后台管理路由 # 该路由下的子路由 # 将子路由添加到当前路由下