summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorAlex Blackie <alex@alexblackie.com>2016-09-26 09:53:06 -0700
committerAlex Blackie <alex@alexblackie.com>2016-09-26 09:53:06 -0700
commit231ccbdc4b694371e315dd346b1978d3553dd5bc (patch)
tree0b7a2a0dd00dd546b150e83d3207782784f9a20f /config
parentae68d516fb04b728b58e22908cab57b918a7aa1c (diff)
Add cancel endpoint for subscriptions
Allow an API request for canceling a subscription.
Diffstat (limited to 'config')
-rw-r--r--config/routes.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/config/routes.rb b/config/routes.rb
index d7850f4..1efa973 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -2,6 +2,11 @@ SolidusSubscriptions::Engine.routes.draw do
namespace :api do
namespace :v1 do
resources :line_items, only: [:update, :destroy]
+ resources :subscriptions, only: [] do
+ member do
+ get :cancel
+ end
+ end
end
end
end