[Rails] Wine cellar inventory tracker.
1
Rails.application.routes.draw do
2
root "wines#index"
3
4
resources :wines
5
6
# Define your application routes per the DSL in https://guides.rubyonrails.org/routing.html
7
8
# Reveal health status on /up that returns 200 if the app boots with no exceptions, otherwise 500.
9
# Can be used by load balancers and uptime monitors to verify that the app is live.
10
get "up" => "rails/health#show", as: :rails_health_check
11
12
# Render dynamic PWA files from app/views/pwa/*
13
get "service-worker" => "rails/pwa#service_worker", as: :pwa_service_worker
14
get "manifest" => "rails/pwa#manifest", as: :pwa_manifest
15
16
# Defines the root path route ("/")
17
# root "posts#index"
18
end
19