def METHOD_NAME(api_name, pattern, method, handler_func):
    """Add new route for given API name
    Args:
        api_name (str): unique name of the api
        pattern (str): route pattern
        method (str): method name
        handler_func (function): route handler function
    """
    if _validate_pattern(pattern):
        route = Route(pattern=pattern, method=method)
        app_routes = get_routes(api_name)
        app_routes[route] = handler_func
    else:
        mlogger.error('Route pattern is invalid: %s', pattern)