diff --git a/config/routes.rb b/config/routes.rb index 6b98943..5c02138 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -3,8 +3,8 @@ 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 - get "client_managements/completed_requests", to: 'client_managements#completed_requests' - get "client_managements/contracts", to: 'client_managements#contracts' + # get "client_managements/completed_requests", to: 'client_managements#completed_requests' + # get "client_managements/contracts", to: 'client_managements#contracts' resources :client_managements do member do @@ -23,6 +23,10 @@ Rails.application.routes.draw do post "create_receipt" patch "update_receipt" end + collection do + get "completed_requests" + get "contracts" + end end end