1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-24 23:40:55 +00:00
Beego/example/chat/controllers/default.go
2013-09-10 18:38:40 +08:00

15 lines
221 B
Go

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"
}