1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-05 15:20:54 +00:00
Beego/example/chat/controllers/default.go

21 lines
519 B
Go
Raw Normal View History

2014-04-12 05:18:18 +00:00
// Beego (http://beego.me/)
// @description beego is an open-source, high-performance web framework for the Go programming language.
// @link http://github.com/astaxie/beego for the canonical source repository
// @license http://github.com/astaxie/beego/blob/master/LICENSE
// @authors Unknwon
2013-09-10 10:38:40 +00:00
package controllers
import (
"github.com/astaxie/beego"
)
type MainController struct {
beego.Controller
}
2014-11-05 14:40:31 +00:00
func (m *MainController) Get() {
m.Data["host"] = m.Ctx.Request.Host
m.TplNames = "index.tpl"
2013-09-10 10:38:40 +00:00
}