This commit is contained in:
Daniel 2023-11-02 09:49:29 +08:00
parent 50b2cef690
commit a952fd7e83
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
2 changed files with 7 additions and 3 deletions

View file

@ -72,9 +72,13 @@ func getInstalledPlugin(c *gin.Context) {
}
frontend := arg["frontend"].(string)
var keyword string
if keywordArg := arg["keyword"]; nil != keywordArg {
keyword = keywordArg.(string)
}
ret.Data = map[string]interface{}{
"packages": model.InstalledPlugins(frontend),
"packages": model.InstalledPlugins(frontend, keyword),
}
}