Closed pixeldesu closed 11 months ago
Read more about this in the parent issue
Functionality location: https://github.com/Retrospring/retrospring/blob/main/app/controllers/ajax/subscription_controller.rb
Additionally: While you are at it, please update the response codes accordingly. Don't think it's particularly productive to have "positive" 4xx responses.
4xx
The refactored Subscription.(un)subscribe methods are already a simple enough API and don't need to be wrapped into a use case.
Subscription.(un)subscribe
Read more about this in the parent issue
Functionality location: https://github.com/Retrospring/retrospring/blob/main/app/controllers/ajax/subscription_controller.rb
Additionally: While you are at it, please update the response codes accordingly. Don't think it's particularly productive to have "positive"
4xx
responses.