mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-28 04:59:52 +01:00
74 lines
1.3 KiB
Python
74 lines
1.3 KiB
Python
from fastapi import APIRouter
|
|
from api.v1 import user, templates, agents, voices, internal, files, chat, memories, devices, stt
|
|
|
|
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"]
|
|
)
|
|
|
|
# STT routes
|
|
api_router.include_router(
|
|
stt.router,
|
|
prefix="/stt",
|
|
tags=["STT"]
|
|
)
|