mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-27 21:06:49 +00:00
15 lines
469 B
Plaintext
15 lines
469 B
Plaintext
<script>
|
|
if (Spree === undefined) {
|
|
var Spree = {}
|
|
}
|
|
if (Spree.routes == undefined) {
|
|
Spree.routes = {}
|
|
}
|
|
Spree.routes = <%== {
|
|
:variants_search => spree.admin_search_variants_path(:format => 'json'),
|
|
:taxons_search => main_app.api_v0_taxons_path(:format => 'json'),
|
|
:orders_api => main_app.api_v0_orders_path,
|
|
:states_search => main_app.api_v0_states_path(:format => 'json')
|
|
}.to_json %>;
|
|
</script>
|