mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-28 04:59:52 +01:00
40 lines
718 B
Python
40 lines
718 B
Python
from fastapi import APIRouter
|
|
from api.v1 import user, templates, agents, voices, internal
|
|
|
|
api_router = APIRouter()
|
|
|
|
# User authentication routes
|
|
api_router.include_router(
|
|
user.router,
|
|
prefix="/user",
|
|
tags=["Account","Authentication"]
|
|
)
|
|
|
|
# Template routes
|
|
api_router.include_router(
|
|
templates.router,
|
|
prefix="/templates",
|
|
tags=["Templates"]
|
|
)
|
|
|
|
# Agent routes
|
|
api_router.include_router(
|
|
agents.router,
|
|
prefix="/agents",
|
|
tags=["Agents"]
|
|
)
|
|
|
|
# Voice routes
|
|
api_router.include_router(
|
|
voices.router,
|
|
prefix="/voices",
|
|
tags=["Voices"]
|
|
)
|
|
|
|
# Internal routes (for xiaozhi-server)
|
|
api_router.include_router(
|
|
internal.router,
|
|
prefix="/internal",
|
|
tags=["Internal"]
|
|
)
|
|
|