require({
    shim: {
        'oro/routes': {
            deps: ['routing'],
            init: function(routing) {
                {% if not app.debug %}
                    {# processed correctly only in case when routing comes via controller #}
                    {% set data = {'base_url': app.request.baseUrl, 'scheme': app.request.scheme, 'host': app.request.host } %}
                    var data = {{ data|json_encode|raw }};
                    data.routes = routing.getRoutes();
                    fos.Router.setData(data);
                {% endif %}
                return routing;
            }
        }
    },
    map: {
        '*': {
            'routing': 'oro/routes'
        },
        'oro/routes': {
            'routing': 'routing'
        }
    },
    paths: {
    {% if app.debug %}
        'oro/routes': '{{ path('fos_js_routing_js', {"callback": "fos.Router.setData"}) }}'
    {% else %}
        'oro/routes': {{ asset('../js/routes.js', 'routing')|json_encode|raw }}
    {% endif %}
    }
});

require({
    shim: {
        'oro/routes': {
            deps: ['routing'],
            init: function(routing) {
                {% if not app.debug %}
                    {# processed correctly only in case when routing comes via controller #}
                    {% set data = {'base_url': app.request.baseUrl, 'scheme': app.request.scheme, 'host': app.request.host } %}
                    var data = {{ data|json_encode|raw }};
                    data.routes = routing.getRoutes();
                    fos.Router.setData(data);
                {% endif %}
                return routing;
            }
        }
    },
    map: {
        '*': {
            'routing': 'oro/routes'
        },
        'oro/routes': {
            'routing': 'routing'
        }
    },
    paths: {
    {% if app.debug %}
        'oro/routes': '{{ path('fos_js_routing_js', {"callback": "fos.Router.setData"}) }}'
    {% else %}
        'oro/routes': {{ asset('js/routes.js', 'routing')|json_encode|raw }}
    {% endif %}
    }
});

Implement assets version for our JS files. Add assets version for JS routes
BAP-7171: Implement assets version for our JS files. Add assets version for JS routes

 - fixed pass to routes resource
