Example #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)
}
Example #2
0
File: main.go Project: devhq-io/ax
func setupRoutes(r *ax.Router) {
	r.StrictSlash(true)
	r.HandleFunc("/", indexFileHandler)

	http.Handle("/", r)
}