Sha256: 29891231570f0603fb762e8d551a042e52f56c5be4454fe9d5fef97e72e8d2b7

Contents?: true

Size: 1.8 KB

Versions: 31

Compression:

Stored size: 1.8 KB

Contents

Spree.routes.checkouts_api = Spree.pathFor('api/checkouts')
Spree.routes.classifications_api = Spree.pathFor('api/classifications')
Spree.routes.option_value_search = Spree.pathFor('api/option_values')
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.admin_product_search = Spree.pathFor('admin/search/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.users_api = Spree.pathFor('api/users')

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_stock_transfer_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)
}

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
solidus_backend-2.4.2 app/assets/javascripts/spree/backend/routes.js
solidus_backend-2.4.1 app/assets/javascripts/spree/backend/routes.js
solidus_backend-2.3.1 app/assets/javascripts/spree/backend/routes.js
solidus_backend-2.2.2 app/assets/javascripts/spree/backend/routes.js
solidus_backend-2.1.1 app/assets/javascripts/spree/backend/routes.js
solidus_backend-2.0.3 app/assets/javascripts/spree/backend/routes.js
solidus_backend-1.4.2 app/assets/javascripts/spree/backend/routes.js
solidus_backend-2.4.0 app/assets/javascripts/spree/backend/routes.js
solidus_backend-2.4.0.rc1 app/assets/javascripts/spree/backend/routes.js
solidus_backend-2.4.0.beta1 app/assets/javascripts/spree/backend/routes.js
solidus_backend-2.3.0 app/assets/javascripts/spree/backend/routes.js
solidus_backend-2.3.0.rc3 app/assets/javascripts/spree/backend/routes.js
solidus_backend-2.3.0.rc2 app/assets/javascripts/spree/backend/routes.js
solidus_backend-2.3.0.rc1 app/assets/javascripts/spree/backend/routes.js
solidus_backend-2.3.0.beta1 app/assets/javascripts/spree/backend/routes.js
solidus_backend-2.0.2 app/assets/javascripts/spree/backend/routes.js
solidus_backend-1.4.1 app/assets/javascripts/spree/backend/routes.js
solidus_backend-2.2.1 app/assets/javascripts/spree/backend/routes.js
solidus_backend-2.2.0 app/assets/javascripts/spree/backend/routes.js
solidus_backend-2.2.0.rc1 app/assets/javascripts/spree/backend/routes.js