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