chore: add api

This commit is contained in:
deepzz0
2021-04-27 23:46:43 +08:00
parent a39e3aac3b
commit 4749b1e681
7 changed files with 469 additions and 74 deletions
+1 -1
View File
@@ -73,7 +73,7 @@ func handleAdminPost(c *gin.Context) {
params["Domain"] = config.Conf.BlogApp.Host
params["Series"] = cache.Ei.Series
var tags []T
for tag, _ := range cache.Ei.TagArticles {
for tag := range cache.Ei.TagArticles {
tags = append(tags, T{tag, tag})
}
str, _ := json.Marshal(tags)