🧑‍💻 Improve kernel API /api/filetree/getPathByID https://github.com/siyuan-note/siyuan/issues/14275

This commit is contained in:
Daniel 2025-03-04 20:22:48 +08:00
parent 2d2420794c
commit f8e6f02df8
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
4 changed files with 17 additions and 7 deletions

View file

@ -368,13 +368,16 @@ func getPathByID(c *gin.Context) {
return
}
_path, err := model.GetPathByID(id)
p, notebook, err := model.GetPathByID(id)
if err != nil {
ret.Code = -1
ret.Msg = err.Error()
return
}
ret.Data = _path
ret.Data = map[string]interface{}{
"path": p,
"notebook": notebook,
}
}
func getFullHPathByID(c *gin.Context) {