Skip to content

Commit

Permalink
Use Spree routes
Browse files Browse the repository at this point in the history
  • Loading branch information
HugsDaniel committed Dec 7, 2018
1 parent b23477a commit cd21223
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions app/views/spree/admin/shared/_routes.html.erb
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
<script>
Spree.routes = <%== {
:variants_search => admin_search_variants_path(:format => 'json'),
:variants_search => spree.api_variants_path(:format => 'json'),
:taxons_search => spree.api_taxons_path(:format => 'json'),
:user_search => spree.admin_search_users_path(:format => 'json'),
:product_search => spree.api_products_path(:format => 'json'),
:option_type_search => spree.api_option_types_path(:format => 'json'),
:states_search => spree.api_states_path(:format => 'json')
:states_search => spree.api_states_path(:format => 'json'),
:orders_api => spree.api_orders_path(:format => 'json'),
:stock_locations_api => spree.api_stock_locations_path(:format => 'json'),
:variants_api => spree.api_variants_path(:format => 'json')
}.to_json %>;
</script>

0 comments on commit cd21223

Please sign in to comment.