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

12
example/chat/main.go Normal file
View File

@@ -0,0 +1,12 @@
package main
import (
"github.com/astaxie/beego"
"github.com/astaxie/beego/example/chat/controllers"
)
func main() {
beego.Router("/", &controllers.MainController{})
beego.Router("/ws", &controllers.WSController{})
beego.Run()
}