Sha256: f1c45e0f7a1a752b103816ec38fecc18fe954b4b71c35dc937fa42ee55fc28cb

Contents?: true

Size: 1.05 KB

Versions: 26

Compression:

Stored size: 1.05 KB

Contents

require "mtwarden/constraints/subdomain_required"

Mtwarden::Engine.routes.draw do

  constraints(Mtwarden::Constraints::SubdomainRequired) do
    scope :module => "account" do
      root :to => "dashboard#index", :as => :account_root
      get "/sign_in", :to => "sessions#new", :as => :sign_in
      post "/sign_in", :to => "sessions#create", :as => :sessions
      get "/sign_up", :to => "users#new", :as => :user_sign_up
      post "/sign_up", :to => "users#create", :as => :do_user_sign_up
      get "/account", :to => "accounts#edit", :as => :edit_account
      patch "/account", :to => "accounts#update"
      get "/account/plan/:plan_id",
      :to => "accounts#plan",
      :as => :plan_account
      get "/account/subscribe",
      :to => "accounts#subscribe",
      :as => :subscribe_account
      post "/account/confirm_plan",
      :to => "accounts#confirm_plan",
      :as => :confirm_plan_account
    end
  end

  root "dashboard#index"
  get "/sign_up", :to => "accounts#new", :as => :sign_up
  post "/accounts", :to => "accounts#create", :as => :accounts

end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
mtwarden-17.1.0 config/routes.rb
mtwarden-17.0.0 config/routes.rb
mtwarden-16.2.0 config/routes.rb
mtwarden-16.1.0 config/routes.rb
mtwarden-16.0.0 config/routes.rb
mtwarden-15.0.0 config/routes.rb
mtwarden-14.0.0 config/routes.rb
mtwarden-13.0.1 config/routes.rb
mtwarden-13.0.0 config/routes.rb
mtwarden-12.0.0 config/routes.rb
mtwarden-11.0.0 config/routes.rb
mtwarden-9.0.0 config/routes.rb
mtwarden-8.1.0 config/routes.rb
mtwarden-8.0.1 config/routes.rb
mtwarden-8.0.0 config/routes.rb
mtwarden-7.2.0 config/routes.rb
mtwarden-7.1.2 config/routes.rb
mtwarden-7.1.1 config/routes.rb
mtwarden-7.1.0 config/routes.rb
mtwarden-7.0.0 config/routes.rb