diff --git a/api/app/controllers/spree/api/config_controller.rb b/api/app/controllers/spree/api/config_controller.rb index b00d1160cda..be48f955fae 100644 --- a/api/app/controllers/spree/api/config_controller.rb +++ b/api/app/controllers/spree/api/config_controller.rb @@ -1,6 +1,11 @@ module Spree module Api class ConfigController < Spree::Api::BaseController + def show + end + + def money + end end end end diff --git a/api/app/controllers/spree/api/line_items_controller.rb b/api/app/controllers/spree/api/line_items_controller.rb index 674772776c6..f4bcb970b5a 100644 --- a/api/app/controllers/spree/api/line_items_controller.rb +++ b/api/app/controllers/spree/api/line_items_controller.rb @@ -8,6 +8,9 @@ class LineItemsController < Spree::Api::BaseController before_filter :load_order, only: [:create, :update, :destroy] around_filter :lock_order, only: [:create, :update, :destroy] + def new + end + def create variant = Spree::Variant.find(params[:line_item][:variant_id]) @line_item = @order.contents.add( diff --git a/api/app/controllers/spree/api/products_controller.rb b/api/app/controllers/spree/api/products_controller.rb index dbda40bb2dc..6608a79b5d5 100644 --- a/api/app/controllers/spree/api/products_controller.rb +++ b/api/app/controllers/spree/api/products_controller.rb @@ -15,6 +15,9 @@ def index respond_with(@products) end + def new + end + def show @product = find_product(params[:id]) expires_in 15.minutes, public: true diff --git a/api/app/controllers/spree/api/taxonomies_controller.rb b/api/app/controllers/spree/api/taxonomies_controller.rb index 5eb658b47ef..6798b3baf88 100644 --- a/api/app/controllers/spree/api/taxonomies_controller.rb +++ b/api/app/controllers/spree/api/taxonomies_controller.rb @@ -5,6 +5,9 @@ def index respond_with(taxonomies) end + def new + end + def show respond_with(taxonomy) end diff --git a/api/app/controllers/spree/api/taxons_controller.rb b/api/app/controllers/spree/api/taxons_controller.rb index 0dbc32bb41c..d7535947ebf 100644 --- a/api/app/controllers/spree/api/taxons_controller.rb +++ b/api/app/controllers/spree/api/taxons_controller.rb @@ -14,6 +14,9 @@ def index respond_with(@taxons) end + def new + end + def show @taxon = taxon respond_with(@taxon)