add chat example

This commit is contained in:
astaxie
2013-09-10 18:38:40 +08:00
parent a88750d2b3
commit 31fbd52462
7 changed files with 290 additions and 123 deletions

View File

@@ -0,0 +1,14 @@
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"
}