Sha256: 134839f08b858196cabda5452ea0b760f6a86b37b23bfdd6133b4531c95a4e73
Contents?: true
Size: 960 Bytes
Versions: 2
Compression:
Stored size: 960 Bytes
Contents
# frozen_string_literal: true SolidusSubscriptions::Engine.routes.draw do namespace :api, defaults: { format: :json } do namespace :v1 do resources :line_items, only: [:update, :destroy] resources :subscriptions, only: [:create, :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 resources :installments, only: [:index, :show] resources :subscription_events, only: :index resources :subscription_orders, path: :orders, only: :index end resources :users do resources :subscriptions, only: [:index], controller: 'users/subscriptions' end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
solidus_subscriptions-1.0.0 | config/routes.rb |
solidus_subscriptions-1.0.0.rc1 | config/routes.rb |