Sha256: 877b2857e2844fff3a18709c1232e031ffbff3269366b7e10c5c7e211b5cec06

Contents?: true

Size: 1.57 KB

Versions: 37

Compression:

Stored size: 1.57 KB

Contents

ForestLiana::Engine.routes.draw do
  router = ForestLiana::Router.new

  # Onboarding
  get '/' => 'apimaps#index'

  # Session
  post 'sessions' => 'sessions#create'

  # CRUD
  get ':collection', to: router
  get ':collection/:id', to: router
  post ':collection', to: router
  put ':collection/:id', to: router
  delete ':collection/:id', to: router

  # Associations
  get ':collection/:id/relationships/:association_name' => 'associations#index'
  put ':collection/:id/relationships/:association_name' => 'associations#update'
  post ':collection/:id/relationships/:association_name' => 'associations#associate'
  delete ':collection/:id/relationships/:association_name' => 'associations#dissociate'

  # Stats
  post '/stats/:collection' => 'stats#show'

  # Stripe Integration
  get '(:collection)_stripe_payments' => 'stripe#payments'
  get ':collection/:id/stripe_payments' => 'stripe#payments'
  post 'stripe_payments/refunds' => 'stripe#refund'
  get '(:collection)_stripe_invoices' => 'stripe#invoices'
  get ':collection/:id/stripe_invoices' => 'stripe#invoices'
  get ':collection/:id/stripe_cards' => 'stripe#cards'
  get '(:collection)_stripe_subscriptions' => 'stripe#subscriptions'
  get ':collection/:id/stripe_subscriptions' => 'stripe#subscriptions'
  get ':collection/:id/stripe_bank_accounts' => 'stripe#bank_accounts'

  # Intercom Integration
  get ':collection/:id/intercom_conversations' => 'intercom#user_conversations'
  get ':collection/:id/intercom_attributes' => 'intercom#attributes'

  # Devise support
  post '/actions/change-password' => 'devise#change_password'
end

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
forest_liana-1.7.8 config/routes.rb
forest_liana-1.7.7 config/routes.rb
forest_liana-1.7.6 config/routes.rb
forest_liana-1.7.5 config/routes.rb
forest_liana-1.7.4 config/routes.rb
forest_liana-1.7.3 config/routes.rb
forest_liana-1.7.2 config/routes.rb
forest_liana-1.7.1 config/routes.rb
forest_liana-1.7.0 config/routes.rb
forest_liana-1.6.17 config/routes.rb
forest_liana-1.6.16 config/routes.rb
forest_liana-1.6.15 config/routes.rb
forest_liana-1.6.14 config/routes.rb
forest_liana-1.6.13 config/routes.rb
forest_liana-1.6.12 config/routes.rb
forest_liana-1.6.11 config/routes.rb
forest_liana-1.6.10 config/routes.rb
forest_liana-1.6.7 config/routes.rb
forest_liana-1.6.6 config/routes.rb
forest_liana-1.6.5 config/routes.rb