예제 #1
0
func init() {
	backend.InitRedirects()
	backend.InitAmpLiveList()
	backend.InitAmpForm()
	backend.InitAmpCache()
	http.Handle("/", RedirectDomain(NoDirListing(http.FileServer(http.Dir(DIST_DIR)))))
}
예제 #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)))))
}