Closed ikaasraa closed 8 months ago
sd := router.Host("{subdomain:[a-z]+}.domain.com").Subrouter() sd.Path("/").HandlerFunc(handlers.SubdomainHandler).Methods("GET") router.HandleFunc("/", handlers.HomeHandler).Methods("GET")
it's not working ??? when I call / load HomeHandler but when I call lh.localhost:300 again load HomeHandler instead SubDomainHandler
it's not working ??? when I call / load HomeHandler but when I call lh.localhost:300 again load HomeHandler instead SubDomainHandler