mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
added wrapper on models; changed handlers; fixes
This commit is contained in:
@@ -17,6 +17,6 @@ func ApplyAppFilter(app *App, filter *AppFilter) bool {
|
||||
}
|
||||
|
||||
func ApplyRouteFilter(route *Route, filter *RouteFilter) bool {
|
||||
return (filter.Path != "" && route.Path == filter.Path) &&
|
||||
(filter.AppName != "" && route.AppName == filter.AppName)
|
||||
return (filter.Path == "" || route.Path == filter.Path) &&
|
||||
(filter.AppName == "" || route.AppName == filter.AppName)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user