Created
March 26, 2010 05:05
-
-
Save Sutto/344538 to your computer and use it in GitHub Desktop.
This file contains 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
Bighelpmob::Application.routes.draw do |map| | |
namespace :admin do | |
resources :users do | |
resources :participations | |
end | |
resources :missions | |
resources :organisations | |
resources :pickups | |
resources :contents | |
resources :questions do | |
collection do | |
post :reorder | |
end | |
end | |
match '', :to => 'admin/dashboard#index', :as => :dashboard | |
end | |
resources :user_session, :as => 'user-sessions' | |
get 'sign-in', :to => 'user_sessions#new', :as => :sign_in | |
post 'sign-in', :to => 'user_sessions#create' | |
match 'sign-out', :to => 'user_sessions#destroy', :as => :sign_out | |
resources :users do | |
member do | |
post :add_rxp_auth | |
end | |
end | |
# Mission Routes. | |
# match 'missions/next', :to => 'missions#next', :as => :next_mission | |
# match 'missions/:id', :to => 'missions#show', :as => :mission | |
# match 'missions/:id/join', :to => 'missions#join', :as => :join_mission | |
# match 'missions/:id/edit-details', :to => 'missions#edit', :as => :edit_mission | |
get 'missions/:id/edit/:as', :to => 'missions#edit', :as => :edit_mission_with_role | |
resources :missions do | |
collection { get :next } | |
member { get :join } | |
end | |
root :to => "pages#show" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment