Example #1
0
File: main.go Project: huyan/beego
func main() {
	beego.Router("/", &controllers.MainController{})
	beego.Router("/ws", &controllers.WSController{})
	beego.Run()
}
Example #2
0
File: main.go Project: huyan/beego
func main() {
	beego.RESTRouter("/object", &controllers.ObjectController{})
	beego.Run()
}