2017-12-21 19:41:50 +00:00
|
|
|
Rails.application.routes.draw do
|
|
|
|
|
|
|
|
locales = Site.find_by(site_active: true).in_use_locales rescue I18n.available_locales
|
|
|
|
scope "(:locale)", locale: Regexp.new(locales.join("|")) do
|
|
|
|
namespace :admin do
|
|
|
|
resources :recruitments do
|
2017-12-26 13:07:35 +00:00
|
|
|
collection do
|
|
|
|
get "industries"
|
|
|
|
get "categories"
|
|
|
|
get "addindustry"
|
|
|
|
post "createindustry"
|
2018-01-17 18:22:24 +00:00
|
|
|
get "member_management"
|
2017-12-26 13:07:35 +00:00
|
|
|
get "addcategory"
|
|
|
|
post "createcategory"
|
2018-01-17 18:22:24 +00:00
|
|
|
get "postings"
|
|
|
|
get "load_chart"
|
2017-12-26 13:07:35 +00:00
|
|
|
end
|
|
|
|
member do
|
|
|
|
delete "deleteindustry"
|
|
|
|
get "editindustry"
|
|
|
|
patch "updateindustry"
|
2018-01-17 18:22:24 +00:00
|
|
|
delete "delete_user"
|
2017-12-26 13:07:35 +00:00
|
|
|
delete "deletecategory"
|
|
|
|
get "editcategory"
|
|
|
|
patch "updatecategory"
|
2018-01-17 18:22:24 +00:00
|
|
|
get "applications"
|
|
|
|
get "show_member"
|
|
|
|
get "member_applications"
|
|
|
|
get "company_postings"
|
2017-12-26 13:07:35 +00:00
|
|
|
end
|
2017-12-21 19:41:50 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
scope "recruit" do
|
|
|
|
get "/firstruncheck", to: "recruitments#firstruncheck"
|
|
|
|
get "/select_profile", to: "recruitments#select_profile"
|
|
|
|
get "/newprofile", to: "recruitments#newprofile"
|
|
|
|
get "/editprofile", to: "recruitments#editprofile"
|
|
|
|
post "/createprofile", to: "recruitments#createprofile"
|
|
|
|
patch "/updateprofile", to: "recruitments#updateprofile"
|
|
|
|
get "/mydashboard", to: "recruitments#recruitment_dashboard"
|
|
|
|
get "/addjob", to: "recruitments#addjob"
|
|
|
|
get "/:id/editjob", to: "recruitments#editjob"
|
|
|
|
post "/createjob", to: "recruitments#createjob"
|
|
|
|
patch "/:id/updatejob", to: "recruitments#updatejob"
|
|
|
|
get "/:id/markfilled", to: "recruitments#markfilled"
|
|
|
|
get "/:id/unmarkfilled", to: "recruitments#unmarkfilled"
|
|
|
|
delete "/:id/deletejob", to: "recruitments#deletejob"
|
2017-12-29 12:00:33 +00:00
|
|
|
get "/advancedform", to: "recruitments#advancedform"
|
2018-01-01 13:52:15 +00:00
|
|
|
get "/employee_academics", to: "recruitments#employee_academics"
|
|
|
|
post "/create_academic", to: "recruitments#create_academic"
|
|
|
|
get "/employee_portfolio", to: "recruitments#employee_portfolio"
|
|
|
|
get "/:id/edit_employee_academic", to: "recruitments#edit_employee_academic"
|
|
|
|
patch "/:id/update_academic", to: "recruitments#update_academic"
|
|
|
|
get "/employee_experience", to: "recruitments#employee_experience"
|
|
|
|
post "/create_experience", to: "recruitments#create_experience"
|
|
|
|
patch "/:id/update_exmployee_experience", to: "recruitments#update_exmployee_experience"
|
|
|
|
get "/:id/edit_employee_experience", to: "recruitments#edit_employee_experience"
|
2018-01-02 18:30:32 +00:00
|
|
|
post "/applyjob", to: "recruitments#applyjob"
|
|
|
|
get "/:id/job_applications", to: "recruitments#job_applications"
|
|
|
|
get "/:id/archive_application", to: "recruitments#archive_application"
|
2018-01-11 12:21:16 +00:00
|
|
|
get "/employee_recommendation", to: "recruitments#employee_recommendation"
|
|
|
|
post "/employee_recommendation", to: "recruitments#employee_recommendation"
|
|
|
|
get "/:id/write_recommendation", to: "recruitments#write_recommendation"
|
|
|
|
post "create_recommendation", to: "recruitments#create_recommendation"
|
2018-01-16 12:06:04 +00:00
|
|
|
get "create_recommendation", to: "recruitments#create_recommendation"
|
2018-01-11 12:21:16 +00:00
|
|
|
delete "/:id/delete_employee_recommendation", to: "recruitments#delete_employee_recommendation"
|
2018-01-16 12:06:04 +00:00
|
|
|
|
2018-01-15 12:26:18 +00:00
|
|
|
get "/addinternship", to: "recruitments#addinternship"
|
2018-01-16 12:06:04 +00:00
|
|
|
get "/:id/editinternship", to: "recruitments#editinternship"
|
2018-01-15 12:26:18 +00:00
|
|
|
|
2018-01-16 12:06:04 +00:00
|
|
|
get "/addexchange", to: "recruitments#addexchange"
|
|
|
|
get "/:id/editexchange", to: "recruitments#editexchange"
|
2018-01-19 13:31:41 +00:00
|
|
|
|
|
|
|
get "/account_settings", to: "recruitments#account_settings"
|
|
|
|
post "/update_settings", to: "recruitments#update_settings"
|
2018-01-16 12:06:04 +00:00
|
|
|
|
2017-12-21 19:41:50 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|