示例#1
0
func main() {
	beego.SetStaticPath("/static/", "static")
	beego.Run()
}
示例#2
0
func main() {
	beego.Router("/", &controllers.MainController{})
	beego.Router("/ws", &controllers.WSController{})
	beego.Run()
}
示例#3
0
func main() {
	beego.RESTRouter("/object", &controllers.ObjectController{})
	beego.Run()
}