whole_func_string: function checkUrl(url, method, routes){
      method=method.toLowerCase();
      for (var i=0; i<routes.length; i++){
          var route=routes[i];
          if ((matchPath(route.url,url)) && (method==route.method)) return route;
      }
      return false;
  }
func_code_string: function checkUrl(url, method, routes){
      method=method.toLowerCase();
      for (var i=0; i<routes.length; i++){
          var route=routes[i];
          if ((matchPath(route.url,url)) && (method==route.method)) return route;
      }
      return false;
  }
func_documentation_string: Check if route should be authorized and return route setting