change in routes
This commit is contained in:
parent
53f8b43f82
commit
3bdd717686
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue