<script>
  Spree.routes = <%== {
    :variants_search       => spree.admin_search_variants_path(:format => 'json'),
    :taxons_search         => main_app.api_taxons_path(:format => 'json'),
    :user_search           => spree.admin_search_users_path(:format => 'json'),
    :orders_api            => main_app.api_orders_path
  }.to_json %>;
</script>

<script>
  Spree.routes = <%== {
    :variants_search       => spree.admin_search_variants_path(:format => 'json'),
    :taxons_search         => main_app.api_taxons_path(:format => 'json'),
    :orders_api            => main_app.api_orders_path
  }.to_json %>;
</script>

Remove unused route from Spree.routes
Remove unused route from Spree.routes
