Sha256: 04c7e07d0f3d610d4801ead13e475210f4f9fa18ddd31da835118946d9af5b10

Contents?: true

Size: 1.38 KB

Versions: 78

Compression:

Stored size: 1.38 KB

Contents

Rails.application.routes.draw do
  unless Rails.env.production?
    mount Showcase::Engine, at: "/docs/showcase" if defined?(Showcase::Engine)
  end

  scope module: "public" do
    root to: "home#index"
    get "invitation" => "home#invitation", :as => "invitation"

    if Rails.env.development?
      get "docs", to: "home#docs"
      get "docs/*page", to: "home#docs"
    end
  end

  namespace :account do
    shallow do
      # TODO we need to either implement a dashboard or deprecate this.
      root to: "dashboard#index", as: "dashboard"

      resource :two_factor, only: [:create, :destroy] do
        post :verify
      end

      # user-level onboarding tasks.
      namespace :onboarding do
        resources :user_details
        resources :user_email
        resources :invitation_lists, only: [:new, :create]
      end

      # user specific resources.
      resources :users

      # team-level resources.
      resources :teams do
        resources :invitations do
          member do
            get :accept
            post :accept
            post :resend
          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

78 entries across 78 versions & 1 rubygems

Version Path
bullet_train-1.11.0 config/routes.rb
bullet_train-1.10.0 config/routes.rb
bullet_train-1.9.0 config/routes.rb
bullet_train-1.8.5 config/routes.rb
bullet_train-1.8.4 config/routes.rb
bullet_train-1.8.3 config/routes.rb
bullet_train-1.8.2 config/routes.rb
bullet_train-1.8.1 config/routes.rb
bullet_train-1.8.0 config/routes.rb
bullet_train-1.7.23 config/routes.rb
bullet_train-1.7.22 config/routes.rb
bullet_train-1.7.21 config/routes.rb
bullet_train-1.7.20 config/routes.rb
bullet_train-1.7.19 config/routes.rb
bullet_train-1.7.18 config/routes.rb
bullet_train-1.7.17 config/routes.rb
bullet_train-1.7.16 config/routes.rb
bullet_train-1.7.15 config/routes.rb
bullet_train-1.7.14 config/routes.rb
bullet_train-1.7.13 config/routes.rb