mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🎨 One-click upgrade of downloaded marketplace packages https://github.com/siyuan-note/siyuan/issues/8390
This commit is contained in:
parent
c6319c3a0e
commit
055e011b3e
3 changed files with 4 additions and 4 deletions
|
|
@ -25,7 +25,7 @@ import (
|
|||
"github.com/siyuan-note/siyuan/kernel/util"
|
||||
)
|
||||
|
||||
func getBazaarPackages(c *gin.Context) {
|
||||
func getUpdatedPackage(c *gin.Context) {
|
||||
ret := gulu.Ret.NewResult()
|
||||
defer c.JSON(http.StatusOK, ret)
|
||||
|
||||
|
|
@ -35,7 +35,7 @@ func getBazaarPackages(c *gin.Context) {
|
|||
}
|
||||
|
||||
frontend := arg["frontend"].(string)
|
||||
plugins, widgets, icons, themes, templates := model.BazaarPackages(frontend)
|
||||
plugins, widgets, icons, themes, templates := model.UpdatedPackages(frontend)
|
||||
ret.Data = map[string]interface{}{
|
||||
"plugins": plugins,
|
||||
"widgets": widgets,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue