mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-18 15:40:12 +01:00
🎨 Improve the response status code of kernel API /api/file/getFile https://github.com/siyuan-note/siyuan/pull/9075
This commit is contained in:
parent
baa3ef0bb4
commit
cf5948dd1a
1 changed files with 1 additions and 0 deletions
|
|
@ -84,6 +84,7 @@ func getFile(c *gin.Context) {
|
|||
ret := gulu.Ret.NewResult()
|
||||
arg, ok := util.JsonArg(c, ret)
|
||||
if !ok {
|
||||
ret.Code = -1
|
||||
c.JSON(http.StatusAccepted, ret)
|
||||
return
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue