You've already forked DataMate
refactor(request): 优化请求处理逻辑并添加PDF提取接口定义
- 简化catch语句移除不必要的异常变量 - 删除无用的FormData条件判断代码 - 将变量声明从let改为const提升代码质量 - 移除响应拦截器中的冗余参数传递 - 在数据集模式模块中添加PDF文本提取相关的请求响应模型 - 更新模块导出列表包含新的PDF提取接口类型定义
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
from fastapi import APIRouter
|
||||
|
||||
from .pdf_extract import router as pdf_extract_router
|
||||
|
||||
router = APIRouter(
|
||||
prefix="/dataset",
|
||||
tags=["dataset"],
|
||||
)
|
||||
|
||||
router.include_router(pdf_extract_router)
|
||||
Reference in New Issue
Block a user