code: def route(method, pattern, handler=None):
      
      if handler is None:
          return partial(route, method, pattern)
      return routes.append(method, pattern, handler)
docs: register a routing rule
  
      Example:
  
           route('GET', '/path/<param>', handler)