Class: Spree::Api::V2::Storefront::AccountCheckerController
- Inherits:
-
BaseController
- Object
- BaseController
- Spree::Api::V2::Storefront::AccountCheckerController
- Defined in:
- app/controllers/spree/api/v2/storefront/account_checker_controller.rb
Instance Method Summary collapse
Instance Method Details
#filter_params ⇒ Object
20 21 22 |
# File 'app/controllers/spree/api/v2/storefront/account_checker_controller.rb', line 20 def filter_params params.permit(:login, :locale, :format) end |
#index ⇒ Object
10 11 12 13 14 15 16 17 18 |
# File 'app/controllers/spree/api/v2/storefront/account_checker_controller.rb', line 10 def index checker = SpreeCmCommissioner::ExistingAccountChecker.call(filter_params.to_h) if checker.success? head :ok else render_error_payload(checker.) end end |