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.6.6 config/routes.rb
bullet_train-1.6.5 config/routes.rb
bullet_train-1.6.4 config/routes.rb
bullet_train-1.6.3 config/routes.rb
bullet_train-1.6.2 config/routes.rb
bullet_train-1.6.1 config/routes.rb
bullet_train-1.6.0 config/routes.rb
bullet_train-1.5.2 config/routes.rb
bullet_train-1.5.1 config/routes.rb
bullet_train-1.5.0 config/routes.rb
bullet_train-1.4.11 config/routes.rb
bullet_train-1.4.10 config/routes.rb
bullet_train-1.4.9 config/routes.rb
bullet_train-1.4.8 config/routes.rb
bullet_train-1.4.7 config/routes.rb
bullet_train-1.4.6 config/routes.rb
bullet_train-1.4.5 config/routes.rb
bullet_train-1.4.4 config/routes.rb