MCPcopy Index your code
hub / github.com/TruthHun/BookStack / Index

Method Index

controllers/CateController.go:12–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10}
11
12func (this *CateController) Index() {
13 cid, _ := this.GetInt("cid")
14 if cid > 0 {
15 this.Redirect(beego.URLFor("HomeController.Index")+this.Ctx.Request.RequestURI, 302)
16 return
17 }
18 defaultHomePage := models.GetOptionValue("DEFAULT_HOME_PAGE", "/")
19 if !(defaultHomePage == "" || defaultHomePage == "/") {
20 this.Redirect(defaultHomePage, 302)
21 return
22 }
23 this.List()
24}
25
26//分类
27func (this *CateController) List() {

Callers

nothing calls this directly

Calls 2

ListMethod · 0.95
GetOptionValueFunction · 0.92

Tested by

no test coverage detected