mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-07-21 07:01:04 +08:00
Decouple skill space from Python API (#15971)
### What problem does this PR solve? Make skill space independent of Python filesystem API ### Type of change - [x] Refactoring
This commit is contained in:
@@ -522,10 +522,7 @@ func (h *SkillSearchHandler) DeleteSpace(c *gin.Context) {
|
||||
return
|
||||
}
|
||||
|
||||
// Get Authorization header for Python API calls
|
||||
authHeader := c.GetHeader("Authorization")
|
||||
|
||||
code, err := h.spaceService.DeleteSpace(spaceID, user.ID, h.docEngine, authHeader)
|
||||
code, err := h.spaceService.DeleteSpace(spaceID, user.ID, h.docEngine, c.Request.Context())
|
||||
if err != nil {
|
||||
jsonError(c, code, err.Error())
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user