恢复 token 认证
This commit is contained in:
parent
b303ae2a44
commit
ea1e10ad21
@ -22,8 +22,8 @@ from module_admin.entity.vo.ragflow_vo import (
|
||||
from utils.log_util import logger
|
||||
from utils.response_util import ResponseUtil
|
||||
|
||||
# 使用标准的APIRouter
|
||||
ragflowController = APIRouter(prefix="/system/ragflow")
|
||||
# 使用标准的APIRouter,增加认证依赖
|
||||
ragflowController = APIRouter(prefix="/system/ragflow", dependencies=[Depends(LoginService.get_current_user)])
|
||||
|
||||
|
||||
def format_sse(data: dict, event: str | None = None) -> str:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user