Using gorilla mux, I currently have many URLs that are of the form:
domain.com/org/{subdomain}/{name}/pagename
such that the code looks like:
rtr.HandleFunc("/org/{subdomain}/{name}/promote", promoteView)
I'd like to also match against:
subdomain.domain.com/{name}/pagename
I know I can do something like
rtr.Host("{subdomain:[a-z]+}.domain.com").HandleFunc("/{name}/promote", promoteView)
to match on the subdomain. Is it possible to only have one HandleFunc() that will match both types of URLs, or do I need to have two HandleFunc()s, one for the first case and one for the subdomain.domain.com case?