Beispiel #1
0
func main() {
	conf := sockjs.NewConfig()
	sockjshandler := sockjs.NewHandler("/chat", chatHandler, conf)
	beego.Router("/", &MainController{})
	beego.RouterHandler("/chat/:info(.*)", sockjshandler)
	beego.Run()
}
Beispiel #2
0
func main() {
	beego.RESTRouter("/object", &controllers.ObejctController{})
	beego.Run()
}