Beispiel #1
0
// Because App Engine owns main and starts the HTTP service,
// we do our setup during initialization.
func init() {
	http.HandleFunc("/r/mi", model.ErrorHandler(micrositio))
	http.HandleFunc("/r/logoup", model.ErrorHandler(upload))
	http.HandleFunc("/r/midata", model.ErrorHandler(modData))
	// simg queda fuera de la ruta segura /r
	http.HandleFunc("/simg", model.ErrorHandler(img))
	http.HandleFunc("/simgnocache", model.ErrorHandler(imgnocache))
	http.HandleFunc("/spic", model.ErrorHandler(imgs))
}
Beispiel #2
0
func init() {
	http.HandleFunc("/r/of", model.ErrorHandler(OfShow))
	http.HandleFunc("/r/ofs", model.ErrorHandler(OfShowList))
	http.HandleFunc("/r/ofmod", model.ErrorHandler(OfMod))
	http.HandleFunc("/r/ofdel", model.ErrorHandler(OfDel))
}