Sha256: 942e3189fb0c737df5f8eb438b2d7de3eb1b3d1e2e6875e4915d488591a1e350

Contents?: true

Size: 817 Bytes

Versions: 21

Compression:

Stored size: 817 Bytes

Contents

Rails.application.routes.draw do
  namespace :account do
    shallow do
      resource :two_factor, only: [:create, :destroy]

      # user-level onboarding tasks.
      namespace :onboarding do
        resources :user_details
        resources :user_email
      end

      # user specific resources.
      resources :users

      # team-level resources.
      resources :teams do
        resources :invitations do
          member do
            get :accept
            post :accept
          end
        end

        resources :memberships do
          member do
            post :demote
            post :promote
            post :reinvite
          end

          collection do
            get :search
          end
        end

        member do
          post :switch_to
        end
      end
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
bullet_train-1.0.24 config/routes.rb
bullet_train-1.0.23 config/routes.rb
bullet_train-1.0.22 config/routes.rb
bullet_train-1.0.21 config/routes.rb
bullet_train-1.0.20 config/routes.rb
bullet_train-1.0.19 config/routes.rb
bullet_train-1.0.18 config/routes.rb
bullet_train-1.0.17 config/routes.rb
bullet_train-1.0.16 config/routes.rb
bullet_train-1.0.15 config/routes.rb
bullet_train-1.0.14 config/routes.rb
bullet_train-1.0.13 config/routes.rb
bullet_train-1.0.12 config/routes.rb
bullet_train-1.0.11 config/routes.rb
bullet_train-1.0.10 config/routes.rb
bullet_train-1.0.9 config/routes.rb
bullet_train-1.0.8 config/routes.rb
bullet_train-1.0.7 config/routes.rb
bullet_train-1.0.6 config/routes.rb
bullet_train-1.0.5 config/routes.rb