config/routes.rb in solidus_subscriptions-alpha-0.0.3 vs config/routes.rb in solidus_subscriptions-alpha-0.0.4
- old
+ new
@@ -1,25 +1,25 @@
-SolidusSubscriptions::Engine.routes.draw do
- namespace :api do
- namespace :v1 do
- resources :line_items, only: [:update, :destroy]
- resources :subscriptions, only: [:update] do
- member do
- post :cancel
- post :skip
- end
- end
- end
- end
-end
-
-Spree::Core::Engine.routes.draw do
- mount SolidusSubscriptions::Engine, at: '/subscriptions'
-
- namespace :admin do
- resources :subscriptions, only: [:index, :new, :create, :edit, :update] do
- delete :cancel, on: :member
- post :activate, on: :member
- post :skip, on: :member
- end
- end
-end
+SolidusSubscriptions::Engine.routes.draw do
+ namespace :api do
+ namespace :v1 do
+ resources :line_items, only: [:update, :destroy]
+ resources :subscriptions, only: [:update] do
+ member do
+ post :cancel
+ post :skip
+ end
+ end
+ end
+ end
+end
+
+Spree::Core::Engine.routes.draw do
+ mount SolidusSubscriptions::Engine, at: '/subscriptions'
+
+ namespace :admin do
+ resources :subscriptions, only: [:index, :new, :create, :edit, :update] do
+ delete :cancel, on: :member
+ post :activate, on: :member
+ post :skip, on: :member
+ end
+ end
+end