mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-28 04:59:52 +01:00
67 lines
1.2 KiB
Python
67 lines
1.2 KiB
Python
from fastapi import APIRouter
|
|
from api.v1 import user, templates, agents, voices, internal, files, chat, memories, devices
|
|
|
|
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"]
|
|
)
|
|
|
|
# Memory routes
|
|
api_router.include_router(
|
|
memories.router,
|
|
prefix="/memories",
|
|
tags=["Memories"]
|
|
)
|
|
|
|
# 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"]
|
|
)
|
|
|
|
# File upload routes (for App only)
|
|
api_router.include_router(
|
|
files.router,
|
|
prefix="/files",
|
|
tags=["Files"]
|
|
)
|
|
|
|
# Chat routes
|
|
api_router.include_router(
|
|
chat.router,
|
|
prefix="/chat",
|
|
tags=["Chat"]
|
|
)
|
|
|
|
# Device routes
|
|
api_router.include_router(
|
|
devices.router,
|
|
prefix="/devices",
|
|
tags=["Devices"]
|
|
)
|