config_center/app/api/api.py
2025-03-03 22:28:34 +08:00

13 lines
573 B
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

from fastapi import APIRouter
from app.api.endpoints import types, configs, users, auth, pages
api_router = APIRouter()
# 添加页面路由,不带前缀
api_router.include_router(pages.router, tags=["pages"])
# API路由不带前缀因为前缀在main.py中添加
api_router.include_router(auth.router, prefix="/auth", tags=["auth"])
api_router.include_router(types.router, prefix="/types", tags=["types"])
api_router.include_router(configs.router, prefix="/configs", tags=["configs"])
api_router.include_router(users.router, prefix="/users", tags=["users"])