示例#1
0
func (this *MainController) Get() {
	this.Data["Catalogs"] = catalog.All()
	this.Data["PageTitle"] = "首页"
	this.Data["Addblog"] = ""
	this.Layout = "layout/default.html"
	this.TplNames = "index.html"
}
示例#2
0
func (this *ApiController) Health() {
	fmt.Println(catalog.All()[0])
	this.Ctx.WriteString("ok")
}