Skip to content

Commit

Permalink
Add v1 Namespace to API Controllers, closes #13
Browse files Browse the repository at this point in the history
  • Loading branch information
hhff committed Apr 26, 2015
1 parent 774fd5d commit a57d5d1
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions app/controllers/spree/api/ams/checkouts_controller.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
module Spree
module Api
module Ams
class CheckoutsController < Spree::Api::CheckoutsController
class CheckoutsController < Spree::Api::V1::CheckoutsController
include Serializable
include Requestable
end
end
end
end
end
4 changes: 2 additions & 2 deletions app/controllers/spree/api/ams/cors_controller.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module Spree
module Api
module Ams
class CorsController < Spree::Api::BaseController
class CorsController < Spree::Api::V1::BaseController
include Requestable

def preflight_check
Expand All @@ -11,4 +11,4 @@ def preflight_check
end
end
end
end
end
4 changes: 2 additions & 2 deletions app/controllers/spree/api/ams/countries_controller.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module Spree
module Api
module Ams
class CountriesController < Spree::Api::CountriesController
class CountriesController < Spree::Api::V1::CountriesController
include Serializable
include Requestable

Expand All @@ -14,4 +14,4 @@ def index
end
end
end
end
end
4 changes: 2 additions & 2 deletions app/controllers/spree/api/ams/line_items_controller.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
module Spree
module Api
module Ams
class LineItemsController < Spree::Api::LineItemsController
class LineItemsController < Spree::Api::V1::LineItemsController
include Serializable
include Requestable
end
end
end
end
end
4 changes: 2 additions & 2 deletions app/controllers/spree/api/ams/orders_controller.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
module Spree
module Api
module Ams
class OrdersController < Spree::Api::OrdersController
class OrdersController < Spree::Api::V1::OrdersController
include Serializable
include Requestable
end
end
end
end
end
4 changes: 2 additions & 2 deletions app/controllers/spree/api/ams/products_controller.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module Spree
module Api
module Ams
class ProductsController < Spree::Api::ProductsController
class ProductsController < Spree::Api::V1::ProductsController
include Serializable
include Requestable

Expand All @@ -16,4 +16,4 @@ def product_scope
end
end
end
end
end
4 changes: 2 additions & 2 deletions app/controllers/spree/api/ams/taxonomies_controller.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
module Spree
module Api
module Ams
class TaxonomiesController < Spree::Api::TaxonomiesController
class TaxonomiesController < Spree::Api::V1::TaxonomiesController
include Serializable
include Requestable
end
end
end
end
end
2 changes: 1 addition & 1 deletion app/controllers/spree/api/ams/users_controller.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module Spree
module Api
module Ams
class UsersController < Spree::Api::UsersController
class UsersController < Spree::Api::V1::UsersController
include Serializable
include Requestable

Expand Down

0 comments on commit a57d5d1

Please sign in to comment.