2016-09-08 10:25:33 -05:00
|
|
|
# frozen_string_literal: true
|
2016-07-26 11:59:23 -05:00
|
|
|
Rails.application.routes.draw do
|
2016-08-24 15:02:32 -05:00
|
|
|
post "/admin/login", to: "admin/auth#auth", as: :admin_auth
|
|
|
|
get "/admin/login", to: "admin/auth#login", as: :admin_login
|
|
|
|
get "/admin/logout", to: "admin/auth#logout", as: :admin_logout
|
|
|
|
get "/admin/reset/:reset_token", to: "admin/auth#reset", as: :admin_reset
|
|
|
|
post "/admin/reset", to: "admin/auth#reset_password", as: :admin_reset_password
|
|
|
|
get "/admin/reset_request", to: "admin/auth#reset_request", as: :admin_reset_request
|
|
|
|
post "/admin/reset_request", to: "admin/auth#send_reset", as: :admin_send_reset
|
2016-08-18 18:22:57 -05:00
|
|
|
|
|
|
|
get "/admin/quizzes", to: "admin/quiz#index", as: :admin_quizzes
|
|
|
|
get "/admin/quiz/new", to: "admin/quiz#new", as: :admin_new_quiz
|
|
|
|
post "/admin/quiz/new", to: "admin/quiz#create", as: :admin_create_quiz
|
|
|
|
get "/admin/quiz/:quiz_id", to: "admin/quiz#view", as: :admin_quiz
|
|
|
|
get "/admin/quiz/:quiz_id/edit", to: "admin/quiz#edit", as: :admin_edit_quiz
|
|
|
|
post "/admin/quiz/:quiz_id/edit", to: "admin/quiz#update", as: :admin_update_quiz
|
|
|
|
patch "/admin/quiz/:quiz_id/edit", to: "admin/quiz#update"
|
|
|
|
|
|
|
|
get "/admin/users", to: "admin/user#index", as: :admin_users
|
|
|
|
get "/admin/user/new", to: "admin/user#new", as: :admin_new_user
|
|
|
|
post "/admin/user/new", to: "admin/user#create", as: :admin_create_user
|
|
|
|
get "/admin/user/:user_id", to: "admin/user#view", as: :admin_user
|
|
|
|
get "/admin/user/:user_id/edit", to: "admin/user#edit", as: :admin_edit_user
|
|
|
|
post "/admin/user/:user_id/edit", to: "admin/user#update", as: :admin_update_user
|
|
|
|
patch "/admin/user/:user_id/edit", to: "admin/user#update"
|
|
|
|
|
2016-08-22 16:24:00 -05:00
|
|
|
get "/admin/questions", to: "admin/question#index", as: :admin_questions
|
|
|
|
get "/admin/question/new", to: "admin/question#new", as: :admin_new_question
|
|
|
|
post "/admin/question/new", to: "admin/question#create", as: :admin_create_question
|
|
|
|
get "/admin/question(/:question_id)/options/:input_type", to: "admin/question#options", as: :admin_question_option_form
|
|
|
|
get "/admin/question/:question_id", to: "admin/question#view", as: :admin_question
|
|
|
|
get "/admin/question/:question_id/edit", to: "admin/question#edit", as: :admin_edit_question
|
|
|
|
post "/admin/question/:question_id/edit", to: "admin/question#update", as: :admin_update_question
|
|
|
|
patch "/admin/question/:question_id/edit", to: "admin/question#update"
|
2016-08-17 17:49:09 -05:00
|
|
|
|
2016-08-24 15:02:32 -05:00
|
|
|
get "/admin/profile", to: "admin/profile#view", as: :admin_profile
|
|
|
|
post "/admin/profile", to: "admin/profile#update", as: :admin_update_profile
|
|
|
|
get "/admin/profile/edit", to: "admin/profile#edit", as: :admin_edit_profile
|
2016-08-24 10:43:33 -05:00
|
|
|
|
|
|
|
get "/admin", to: "admin#dashboard", as: :admin
|
|
|
|
|
2016-08-17 17:49:09 -05:00
|
|
|
#########################################################################################
|
|
|
|
|
2016-08-18 18:22:57 -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
|
|
|
|
|
|
|
|
get "/oops", to: "candidate#oops", as: :oops
|
|
|
|
|
|
|
|
post "/question(/:answer_id)", to: "quiz#update_answer", as: :post_answer
|
|
|
|
get "/question(/:question_id)", to: "quiz#question", as: :question
|
|
|
|
post "/summary", to: "quiz#submit_summary", as: :post_summary
|
|
|
|
get "/summary", to: "quiz#summary", as: :summary
|
|
|
|
|
|
|
|
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-09-15 10:01:31 -05:00
|
|
|
get "/resend/welcome/:id", to: "recruiter#resend_welcome", as: :resend_welcome
|
|
|
|
|
2016-08-18 18:22:57 -05:00
|
|
|
get "/recruiter", to: "recruiter#index", as: :recruiter
|
2016-09-16 11:36:48 -05:00
|
|
|
get "/recruiter/candidate", to: "recruiter#new", as: :new_candidate
|
|
|
|
post "/recruiter/candidate", to: "recruiter#create", as: :create_candidate
|
|
|
|
get "/recruiter/candidate/:id", to: "recruiter#edit", as: :edit_candidate
|
|
|
|
post "/recruiter/candidate/:id", to: "recruiter#update", as: :update_candidate
|
2016-08-18 18:22:57 -05:00
|
|
|
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-24 08:23:29 -05:00
|
|
|
get "/styleguide", to: "application#styleguide", as: :styleguide
|
|
|
|
|
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
|