Sha256: 7dbd8972efb15a41f7cb6a4bd9b4efa34ddea63d06258c4d29fe831960e7cd7c
Contents?: true
Size: 1.18 KB
Versions: 12
Compression:
Stored size: 1.18 KB
Contents
Rails.application.routes.draw do scope module: "public" do root to: "home#index" get "invitation" => "home#invitation", :as => "invitation" if Rails.env.production? ? ENV["ENABLE_DOCS"].present? : true 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] # 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
12 entries across 12 versions & 1 rubygems