Batch routes registering

    Register routes to a blueprint/flask_app previously collected
    with :func:`routes_collector`.

    :param fapp: bluprint or flask_app to whom attach new routes.
    :param routes: dict of routes collected by :func:`routes_collector`
    :param prefix: url prefix under which register all routes

def add_routes(fapp, routes, prefix=""):
    """Batch routes registering

    Register routes to a blueprint/flask_app previously collected
    with :func:`routes_collector`.

    :param fapp: bluprint or flask_app to whom attach new routes.
    :param routes: dict of routes collected by :func:`routes_collector`
    :param prefix: url prefix under which register all routes
    """
    for r in routes:
        r['rule'] = prefix + r['rule']
        fapp.add_url_rule(**r)