2019-11-15 00:44:28 +00:00
|
|
|
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'
|
2019-11-23 08:14:56 +00:00
|
|
|
get 'editCancerpredicts' , to: 'cancerpredicts#edit'
|
2019-12-11 15:59:17 +00:00
|
|
|
post 'editCancerpredicts' , to: 'cancerpredicts#edit'
|
|
|
|
patch 'editCancerpredicts' , to: 'cancerpredicts#edit'
|
|
|
|
get 'cancerpredicts/showSubmit' , to: 'cancerpredicts#showSubmit'
|
2020-02-03 08:47:49 +00:00
|
|
|
get 'cancerpredicts/export_cancer_tool_record' , to: 'cancerpredicts#export_cancer_tool_record'
|
2019-11-15 00:44:28 +00:00
|
|
|
resources :cancerpredicts
|
|
|
|
end
|
2020-02-06 07:50:25 +00:00
|
|
|
get "cancerpredictResult", to: "cancerpredicts#calculate"
|
|
|
|
post "cancerpredictResult", to: "cancerpredicts#calculate"
|
2019-11-15 00:44:28 +00:00
|
|
|
end
|
|
|
|
end
|