Enable installing app as pwa

This commit is contained in:
Mirna Milic
2025-05-28 17:23:07 +02:00
parent 54da8c70e3
commit 5879bc3faf
11 changed files with 60 additions and 0 deletions

View File

@@ -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"

View File

@@ -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