Enable installing app as pwa
This commit is contained in:
@@ -4,3 +4,4 @@ pin "@hotwired/stimulus", to: "stimulus.min.js"
|
||||
pin "@hotwired/stimulus-loading", to: "stimulus-loading.js"
|
||||
pin "application"
|
||||
pin_all_from "app/javascript/controllers", under: "controllers"
|
||||
pin_all_from "app/javascript/custom", under: "custom"
|
||||
|
||||
@@ -12,6 +12,9 @@ Rails.application.routes.draw do
|
||||
# Can be used by load balancers and uptime monitors to verify that the app is live.
|
||||
get "up" => "rails/health#show", as: :rails_health_check
|
||||
|
||||
# config/routes.rb
|
||||
get "/service-worker.js" => "service_worker#service_worker"
|
||||
get "/manifest.json" => "service_worker#manifest"
|
||||
# Defines the root path route ("/")
|
||||
# root "posts#index"
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user