Beispiel #1
0
func main() {
	configureStaticPath()
	if beego.AppConfig.DefaultInt("httpport", 0) == 0 {
		port, _ := strconv.Atoi(os.Getenv("PORT"))
		beego.HttpPort = port
	}
	beego.Run()
}
Beispiel #2
0
func main() {
	beego.RESTRouter("/object", &controllers.ObjectController{})
	beego.Run()
}
Beispiel #3
0
func main() {
	beego.Router("/", &controllers.MainController{})
	beego.Router("/ws", &controllers.WSController{})
	beego.Run()
}