mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-16 00:50:56 +08: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
@ -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…
Reference in New Issue
Block a user