mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-28 12:28:48 +01:00
🎨 Support for listing missing files in Settings - Assets https://github.com/siyuan-note/siyuan/issues/8383
This commit is contained in:
parent
17d8c79057
commit
558f1cdabc
4 changed files with 79 additions and 0 deletions
|
|
@ -210,6 +210,16 @@ func getUnusedAssets(c *gin.Context) {
|
|||
}
|
||||
}
|
||||
|
||||
func getMissingAssets(c *gin.Context) {
|
||||
ret := gulu.Ret.NewResult()
|
||||
defer c.JSON(http.StatusOK, ret)
|
||||
|
||||
missingAssets := model.MissingAssets()
|
||||
ret.Data = map[string]interface{}{
|
||||
"missingAssets": missingAssets,
|
||||
}
|
||||
}
|
||||
|
||||
func resolveAssetPath(c *gin.Context) {
|
||||
ret := gulu.Ret.NewResult()
|
||||
defer c.JSON(http.StatusOK, ret)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue