//= require jquery //= require jquery_ujs //= require jquery-migrate-1.0.0 //= require jquery-ui/datepicker //= require jquery-ui/sortable //= require jquery-ui/autocomplete //= require modernizr //= require jquery.cookie //= require jquery.delayedobserver //= require jquery.jstree/jquery.jstree //= require jquery.alerts/jquery.alerts //= require jquery.powertip //= require jquery.vAlign //= require css_browser_selector_dev //= require spin //= require trunk8 //= require jquery.adaptivemenu //= require equalize //= require responsive-tables //= require underscore-min //= require backbone //= require spree //= require ./backend/backbone-overrides //= require spree/backend/spree-select2 //= require_tree . Spree.routes.checkouts_api = Spree.pathFor('api/checkouts') Spree.routes.classifications_api = Spree.pathFor('api/classifications') Spree.routes.clear_cache = Spree.pathFor('admin/general_settings/clear_cache') Spree.routes.option_type_search = Spree.pathFor('api/option_types') Spree.routes.orders_api = Spree.pathFor('api/orders') Spree.routes.product_search = Spree.pathFor('api/products') Spree.routes.shipments_api = Spree.pathFor('api/shipments') Spree.routes.checkouts_api = Spree.pathFor('api/checkouts') Spree.routes.stock_locations_api = Spree.pathFor('api/stock_locations') Spree.routes.taxon_products_api = Spree.pathFor('api/taxons/products') Spree.routes.taxons_search = Spree.pathFor('api/taxons') Spree.routes.user_search = Spree.pathFor('admin/search/users') Spree.routes.variants_api = Spree.pathFor('api/variants') Spree.routes.line_items_api = function(order_id) { return Spree.pathFor('api/orders/' + order_id + '/line_items') } Spree.routes.payments_api = function(order_id) { return Spree.pathFor('api/orders/' + order_id + '/payments') } Spree.routes.stock_items_api = function(stock_location_id) { return Spree.pathFor('api/stock_locations/' + stock_location_id + '/stock_items') } Spree.routes.receive_transfer_items_api = function(stockTransferNumber) { return Spree.pathFor('api/stock_transfers/' + stockTransferNumber + '/receive') } Spree.routes.create_transfer_items_api = function(stockTransferNumber) { return Spree.pathFor('api/stock_transfers/' + stockTransferNumber + '/transfer_items') } Spree.routes.update_transfer_items_api = function(stockTransferNumber, itemId) { return Spree.pathFor('api/stock_transfers/' + stockTransferNumber + '/transfer_items/' + itemId) }