Exemplo n.º 1
0
func init() {
	backend.InitRedirects()
	backend.InitAmpLiveList()
	backend.InitAmpForm()
	backend.InitAmpCache()
	http.Handle("/", RedirectDomain(NoDirListing(http.FileServer(http.Dir(DIST_DIR)))))
}
Exemplo n.º 2
0
func init() {
	backend.InitRedirects()
	backend.InitAmpLiveList()
	backend.InitAmpForm()
	backend.InitAmpCache()
	backend.InitProductListing()
	backend.InitHousingForm()
	backend.InitAmpAnalytics()
	backend.InitCommentSection()
	backend.InitHotelSample()
	http.Handle("/", ServeStaticFiles(HandleNotFound(http.FileServer(http.Dir(DIST_DIR)))))
}