Fetch payload body from params[:notification]
Fetch payload body from `params[:notification]` instead of slicing out service params such as controller, and action names. If the "Content-Type" header of your request is set to "application/json", Rails will automatically load your parameters into the params hash, which you can access as you would normally. https://guides.rubyonrails.org/v5.2/ action_controller_overview.html#json-parameters
Showing
Please register or sign in to comment