26 lines
890 B
Ruby
26 lines
890 B
Ruby
Rails.application.routes.draw do
|
|
Thread.new do
|
|
c = Cancerpredictfields.last
|
|
if c
|
|
sleep(5)
|
|
c.save
|
|
c.auto_write_predict_js
|
|
end
|
|
end
|
|
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
|
|
get "cancerpredictResult", to: "cancerpredicts#calculate"
|
|
post "cancerpredictResult", to: "cancerpredicts#calculate"
|
|
end
|
|
end
|