Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

router.Host not working for me #752

Closed
ikaasraa opened this issue Mar 5, 2024 · 0 comments
Closed

router.Host not working for me #752

ikaasraa opened this issue Mar 5, 2024 · 0 comments
Labels

Comments

@ikaasraa
Copy link

ikaasraa commented Mar 5, 2024

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

@ikaasraa ikaasraa added the bug label Mar 5, 2024
@ikaasraa ikaasraa closed this as completed Mar 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant