Пример #1
0
func setupRoutes(r *ax.Router) {
	r.StrictSlash(true)
	r.HandleFunc("/", indexFileHandler).Methods("GET")
	r.HandleFunc("/{tunnel_name}", indexFileHandler).Methods("GET")

	http.Handle("/", r)
}
Пример #2
0
func setupRoutes(r *ax.Router) {
	r.StrictSlash(true)
	r.HandleFunc("/", indexFileHandler)

	http.Handle("/", r)
}