Created
March 3, 2012 04:56
-
-
Save azuby/1964449 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SyncIn::Application.routes.draw do | |
#devise_for :admins, :controllers => { :sessions => "admins/sessions" } | |
devise_for :users, :controllers => { :sessions => "sessions", :registrations => "registrations" }, :skip => [ :sessions, :registations ] | |
as :user do | |
get '/signin' => 'sessions#new', :as => :new_user_session | |
post '/signin' => 'sessions#create', :as => :user_session | |
delete '/signout' => 'sessions#destroy', :as => :destroy_user_session | |
get '/signup' => 'registrations#new', :as => :new_user_registration | |
post '/signup' => 'registrations#create', :as => :user_registration | |
get '/users/cancel' => 'registrations#cancel', :as => :cancel_user_registration | |
get '/settings' => 'registrations#edit', :as => :edit_user_registration | |
put '/settings' => 'registrations#update' | |
delete '/users' => 'registrations#destroy' | |
end | |
match '/timecard' => "shifts#index", :as => :user_root | |
resources :users, :roles, :shifts, :jobs | |
# IVR API | |
match 'clocks/new', :to => 'clocks#new', :as => :new_clock | |
match 'clocks/verify', :to => 'clocks#verify', :as => :verify_clock | |
match 'clocks/create', :to => 'clocks#create', :as => :create_clock | |
match 'clocks/register', :to => 'clocks#register' | |
match '/contact', :to => 'pages#contact' | |
match '/welcome', :to => 'pages#welcome' | |
namespace :admin do | |
mount Resque::Server, at: '/resque', constraints: CanAccessResque | |
end | |
root :to => 'pages#welcome' | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment