change in routes

This commit is contained in:
Harry Bomrah 2017-09-19 16:33:08 +08:00
parent 53f8b43f82
commit 3bdd717686
1 changed files with 6 additions and 2 deletions

View File

@ -3,8 +3,8 @@ Rails.application.routes.draw do
locales = Site.find_by(site_active: true).in_use_locales rescue I18n.available_locales locales = Site.find_by(site_active: true).in_use_locales rescue I18n.available_locales
scope "(:locale)", locale: Regexp.new(locales.join("|")) do scope "(:locale)", locale: Regexp.new(locales.join("|")) do
namespace :admin do namespace :admin do
get "client_managements/completed_requests", to: 'client_managements#completed_requests' # get "client_managements/completed_requests", to: 'client_managements#completed_requests'
get "client_managements/contracts", to: 'client_managements#contracts' # get "client_managements/contracts", to: 'client_managements#contracts'
resources :client_managements do resources :client_managements do
member do member do
@ -23,6 +23,10 @@ Rails.application.routes.draw do
post "create_receipt" post "create_receipt"
patch "update_receipt" patch "update_receipt"
end end
collection do
get "completed_requests"
get "contracts"
end
end end
end end