Sha256: 5de7d39133b4cb82012171e3a1ff292d94a5c27aeb639ab3553af7ab38aa548c
Contents?: true
Size: 766 Bytes
Versions: 2
Compression:
Stored size: 766 Bytes
Contents
require 'cadenero/constraints/subdomain_required' Cadenero::Engine.routes.draw do namespace :v1 do get "users/new" constraints(Cadenero::Constraints::SubdomainRequired) do scope :module => "account" do root :to => "dashboard#index" get '/sign_in', :to => "sessions#new" 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 => :user_sign_up end end get '/sign_up', :to => "accounts#new", :as => :sign_up post '/accounts', :to => "accounts#create", :as => :accounts root :to => "dashboard#index" end # post '/v1/accounts', :to => "v1/accounts#create", :as => :accounts end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cadenero-0.0.2.a | config/routes.rb |
cadenero-0.0.1 | config/routes.rb |