16 lines
538 B
Ruby
16 lines
538 B
Ruby
Rails.application.routes.draw do
|
|
|
|
locales = Site.first.in_use_locales rescue I18n.available_locales
|
|
|
|
scope "(:locale)", locale: Regexp.new(locales.join("|")) do
|
|
namespace :admin do
|
|
get 'cancerpredicts' , to: 'cancerpredicts#index'
|
|
get 'editCancerpredicts' , to: 'cancerpredicts#edit'
|
|
post 'editCancerpredicts' , to: 'cancerpredicts#edit'
|
|
patch 'editCancerpredicts' , to: 'cancerpredicts#edit'
|
|
get 'cancerpredicts/showSubmit' , to: 'cancerpredicts#showSubmit'
|
|
resources :cancerpredicts
|
|
end
|
|
end
|
|
end
|