mirror of https://gitee.com/answerdev/answer.git
feat(siteinfo): update manifest.json site name
This commit is contained in:
parent
545342db50
commit
79d025f0b1
|
@ -130,5 +130,12 @@ func (sc *SiteInfoController) GetManifestJson(ctx *gin.Context) {
|
|||
resp.Icons["48"] = branding.Favicon
|
||||
resp.Icons["128"] = branding.Favicon
|
||||
}
|
||||
siteGeneral, err := sc.siteInfoService.GetSiteGeneral(ctx)
|
||||
if err != nil {
|
||||
log.Error(err)
|
||||
} else {
|
||||
resp.Name = siteGeneral.Name
|
||||
resp.ShortName = siteGeneral.Name
|
||||
}
|
||||
ctx.JSON(http.StatusOK, resp)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue