22032025-1

This commit is contained in:
Zeev Diukman 2025-03-22 09:00:38 +00:00
parent 05c91a474e
commit 0a5fb4f5b6

View file

@ -29,22 +29,22 @@ func (r *DomainRouter) Handler(handler http.Handler) *mux.Route {
} }
// NewDomainRouter creates a new DomainRouter for a specific host. // NewDomainRouter creates a new DomainRouter for a specific host.
// func (r *Router) NewHostRouter(domain string, rule string) *DomainRouter { func (r *Router) NewHostRouter(domain string, rule string) *DomainRouter {
// domainRouter := &DomainRouter{ domainRouter := &DomainRouter{
// Domain: "", Domain: "",
// Router: nil, Router: nil,
// } }
// switch rule { switch rule {
// case "Domain": case "Domain":
// { {
// domainRouter.Router = r.NewRoute().Host(domain).Subrouter() domainRouter.Router = r.NewRoute().Host(domain).Subrouter()
// } }
// default: default:
// { {
// domainRouter.Router = r.NewRoute().Host(domain).Subrouter() domainRouter.Router = r.NewRoute().Host(domain).Subrouter()
// } }
// } }
// return domainRouter return domainRouter
// } }