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