Class: SolidusBolt::WebhooksController
- Inherits:
-
BaseController
- Object
- Spree::Api::BaseController
- BaseController
- SolidusBolt::WebhooksController
- Defined in:
- app/controllers/solidus_bolt/webhooks_controller.rb
Instance Method Summary collapse
Instance Method Details
#update ⇒ Object
5 6 7 8 9 10 11 12 13 |
# File 'app/controllers/solidus_bolt/webhooks_controller.rb', line 5 def update ::SolidusBolt::Sorter.call(permitted_params) render json: {}, status: :ok rescue StandardError => e = e.to_s logger.error render json: { error: }, status: :unprocessable_entity end |