17 lines
638 B
Ruby
17 lines
638 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'
|
|
get 'cancerpredicts/export_cancer_tool_record' , to: 'cancerpredicts#export_cancer_tool_record'
|
|
resources :cancerpredicts
|
|
end
|
|
end
|
|
end
|