示例#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
文件: main.go 项目: devhq-io/ax
func setupRoutes(r *ax.Router) {
	r.StrictSlash(true)
	r.HandleFunc("/", indexFileHandler)

	http.Handle("/", r)
}