View raw

1 Rails.application.routes.draw do 2 root "dashboard#index" 3 4 # get "ferti_recipe", to: "recipes#show" 5 6 # resources :beds, only: [ :index, :edit, :update ] do 7 # collection do 8 # patch :bulk_assign_crops 9 # post :reset_seed_crops 10 # end 11 12 # resources :rafts, only: [ :index, :edit, :update ], shallow: true 13 # end 14 15 # resources :fertilizer_products 16 resources :targets 17 resources :nutrient_profiles 18 resources :nutrient_measurements 19 20 # Define your application routes per the DSL in https://guides.rubyonrails.org/routing.html 21 22 # Reveal health status on /up that returns 200 if the app boots with no exceptions, otherwise 500. 23 # Can be used by load balancers and uptime monitors to verify that the app is live. 24 get "up" => "rails/health#show", as: :rails_health_check 25 26 # Render dynamic PWA files from app/views/pwa/* (remember to link manifest in application.html.erb) 27 # get "manifest" => "rails/pwa#manifest", as: :pwa_manifest 28 # get "service-worker" => "rails/pwa#service_worker", as: :pwa_service_worker 29 30 # Defines the root path route ("/") 31 # root "posts#index" 32 end 33