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:
Yingfeng
2026-06-12 18:18:55 +08:00
committed by GitHub
parent 115b730d07
commit 5a7d7771a3
2 changed files with 23 additions and 106 deletions

View File

@@ -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