52 lines
1.2 KiB
Python
52 lines
1.2 KiB
Python
"""
|
|
API v1 路由聚合
|
|
==============
|
|
"""
|
|
|
|
from fastapi import APIRouter
|
|
|
|
from app.api.v1 import (
|
|
ai_models,
|
|
auth,
|
|
avatar,
|
|
caption,
|
|
klingai,
|
|
qiniu,
|
|
script,
|
|
system,
|
|
tasks,
|
|
video,
|
|
)
|
|
|
|
api_router = APIRouter()
|
|
|
|
# 认证模块
|
|
api_router.include_router(auth.router, prefix="/auth", tags=["Authentication"])
|
|
|
|
# 脚本模块
|
|
api_router.include_router(script.router, prefix="/script", tags=["Script"])
|
|
|
|
# AI 平台管理模块
|
|
api_router.include_router(ai_models.router, prefix="/ai", tags=["AI Models"])
|
|
|
|
# KlingAI 模块(视频/图像生成)
|
|
api_router.include_router(klingai.router, tags=["KlingAI"])
|
|
|
|
# 七牛云对象存储模块
|
|
api_router.include_router(qiniu.router, tags=["Qiniu Storage"])
|
|
|
|
# 视频生成模块
|
|
api_router.include_router(video.router, tags=["Video"])
|
|
|
|
# 形象克隆模块
|
|
api_router.include_router(avatar.router, tags=["Avatar"])
|
|
|
|
# 系统模块
|
|
api_router.include_router(system.router, prefix="/system", tags=["System"])
|
|
|
|
# 字幕生成模块(火山引擎-豆包语音)
|
|
api_router.include_router(caption.router, tags=["Caption"])
|
|
|
|
# 统一任务管理模块
|
|
api_router.include_router(tasks.router, tags=["Tasks"])
|