refactor rules, api enhancements

This commit is contained in:
emile 2015-09-15 18:35:32 +02:00
parent a4f542c02f
commit ef9e773b9f
6 changed files with 8 additions and 8 deletions

View file

@ -188,7 +188,7 @@ func LoadConfig(configuration *Configuration, gloablConfiguration *GlobalConfigu
newRoute := router.NewRoute()
for routeName, route := range frontend.Routes {
log.Debug("Creating route %s", routeName)
newRouteReflect := Invoke(newRoute, route.Category, route.Value)
newRouteReflect := Invoke(newRoute, route.Rule, route.Value)
newRoute = newRouteReflect[0].Interface().(*mux.Route)
}
if backends[frontend.Backend] == nil {