1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-30 02:31:30 +00:00
Beego/example/chat/controllers/default.go

15 lines
221 B
Go
Raw Normal View History

2013-09-10 10:38:40 +00:00
package controllers
import (
"github.com/astaxie/beego"
)
type MainController struct {
beego.Controller
}
func (this *MainController) Get() {
this.Data["host"] = this.Ctx.Request.Host
this.TplNames = "index.tpl"
}