MCPcopy Create free account
hub / github.com/TruthHun/BookStack / Sitemap

Method Sitemap

controllers/ManagerController.go:923–930  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

921}
922
923func (this *ManagerController) Sitemap() {
924 baseUrl := this.Ctx.Input.Scheme() + "://" + this.Ctx.Request.Host
925 if host := beego.AppConfig.String("sitemap_host"); len(host) > 0 {
926 baseUrl = this.Ctx.Input.Scheme() + "://" + host
927 }
928 go models.SitemapUpdate(baseUrl)
929 this.JsonResult(0, "站点地图更新提交成功,已交由后台执行更新,请耐心等待。")
930}
931
932// 分类管理
933func (this *ManagerController) Category() {

Callers

nothing calls this directly

Calls 2

SitemapUpdateFunction · 0.92
JsonResultMethod · 0.80

Tested by

no test coverage detected