func RegisterRoutes(routes ...Route) {
	for _, route := range routes {
		r := defaultRouter.HandleFunc(route.Path, getHandlerWrapper(route.Handler))

		if route.Host != "" {
			r.Host(route.Host)
		}

		if route.Scheme != "" {
			r.Schemes(route.Scheme)
		}

		if route.Method != "" {
			r.Methods(route.Method)
		}
	}
}
// RegisterRoutes takes a slice of routes and registers them as router HandleFuncs
RegisterRoutes takes a slice of routes and registers them as router HandleFuncs
// RegisterRoutes takes a slice of routes and registers them as router HandleFuncs
func RegisterRoutes(routes ...Route) {
	for _, route := range routes {
		r := defaultRouter.HandleFunc(route.Path, getHandlerWrapper(route.Handler))
		if route.Host != "" {
			r.Host(route.Host)
		}
		if route.Scheme != "" {
			r.Schemes(route.Scheme)
		}
		if route.Method != "" {
			r.Methods(route.Method)
		}
	}
}
func RegisterRoutes ( routes ... Route ) { for _ , route := range routes { r := defaultRouter . HandleFunc ( route . Path , getHandlerWrapper ( route . Handler ) ) if route . Host != " " { r . Host ( route . Host ) } if route . Scheme != " " { r . Schemes ( route . Scheme ) } if route . Method != " " { r . Methods ( route . Method ) } } }
RegisterRoutes takes a slice of routes and registers them as router HandleFuncs
RegisterRoutes takes a slice of routes and registers them as router HandleFuncs