mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-28 21:07:16 +00:00
15 lines
460 B
Plaintext
15 lines
460 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_taxons_path(:format => 'json'),
|
|
:orders_api => main_app.api_orders_path,
|
|
:states_search => main_app.api_states_path(:format => 'json')
|
|
}.to_json %>;
|
|
</script>
|