recruitment/config/routes.rb

27 lines
1.1 KiB
Ruby

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
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"
end
end
end