2016-07-26 11:59:23 -05:00
|
|
|
Rails.application.routes.draw do
|
2016-08-07 09:36:08 -05:00
|
|
|
post "/validate", to: "candidate#validate", as: :validate_candidate
|
|
|
|
get "/login(/:test_id)", to: "candidate#login", as: :login
|
|
|
|
get "/welcome", to: "candidate#welcome", as: :welcome
|
|
|
|
get "/saved", to: "candidate#saved", as: :saved
|
|
|
|
get "/thankyou", to: "candidate#thankyou", as: :thankyou
|
2016-07-27 22:16:12 -05:00
|
|
|
|
2016-08-07 09:36:08 -05:00
|
|
|
get "/oops", to: "candidate#oops", as: :oops
|
2016-07-30 16:25:09 -05:00
|
|
|
|
2016-08-07 09:36:08 -05:00
|
|
|
post "/question(/:answer_id)", to: "quiz#update_answer", as: :post_answer
|
|
|
|
get "/question(/:question_id)", to: "quiz#question", as: :question
|
2016-08-10 10:38:20 -05:00
|
|
|
post "/summary", to: "quiz#submit_summary", as: :post_summary
|
2016-08-07 09:36:08 -05:00
|
|
|
get "/summary", to: "quiz#summary", as: :summary
|
2016-07-29 11:00:04 -05:00
|
|
|
|
2016-08-07 09:36:08 -05:00
|
|
|
get "/review/logout", to: "review#logout", as: :review_logout
|
|
|
|
post "/review/login", to: "review#auth", as: :review_auth
|
|
|
|
get "/review/login", to: "review#login", as: :review_login
|
|
|
|
get "/review", to: "review#index", as: :review
|
|
|
|
get "/review/:test_hash", to: "review#view", as: :review_test
|
2016-07-31 09:56:02 -05:00
|
|
|
|
2016-08-07 09:36:08 -05:00
|
|
|
get "/recruiter", to: "recruiter#index", as: :recruiter
|
|
|
|
get "/recruiter/new-candidate", to: "recruiter#new", as: :new_candidate
|
|
|
|
post "/recruiter/new-candidate", to: "recruiter#create", as: :create_candidate
|
|
|
|
get "/recruiter/logout", to: "recruiter#logout", as: :recruiter_logout
|
|
|
|
get "/recruiter/login", to: "recruiter#login", as: :recruiter_login
|
|
|
|
post "/recruiter/login", to: "recruiter#auth", as: :recruiter_auth
|
2016-07-31 09:56:02 -05:00
|
|
|
|
2016-08-02 18:02:20 -05:00
|
|
|
root to: "candidate#login"
|
2016-07-30 16:25:09 -05:00
|
|
|
|
2016-07-26 11:59:23 -05:00
|
|
|
# For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
|
|
|
|
end
|