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
16 17 18 |
# File 'app/controllers/spree/api/v2/storefront/account_checker_controller.rb', line 16 def filter_params params.permit(:login, :locale, :format) end |
#index ⇒ Object
6 7 8 9 10 11 12 13 14 |
# File 'app/controllers/spree/api/v2/storefront/account_checker_controller.rb', line 6 def index checker = SpreeCmCommissioner::ExistingAccountChecker.call(filter_params.to_h) if checker.success? head :ok else render_error_payload(checker.) end end |