File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed
railties/lib/rails/generators/rails/app Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -491,6 +491,7 @@ def delete_app_views_if_api_option
491
491
remove_dir "app/views"
492
492
else
493
493
remove_file "app/views/layouts/application.html.erb"
494
+ remove_dir "app/views/pwa"
494
495
end
495
496
end
496
497
end
Original file line number Diff line number Diff line change @@ -5,10 +5,12 @@ Rails.application.routes.draw do
5
5
# Can be used by load balancers and uptime monitors to verify that the app is live.
6
6
get "up", to: "rails/health#show", as: :rails_health_check
7
7
8
+ <%- unless options.api? -%>
8
9
# Render dynamic PWA files from app/views/pwa/*
9
10
get "service-worker", to: "rails/pwa#service_worker", as: :pwa_service_worker
10
11
get "manifest", to: "rails/pwa#manifest", as: :pwa_manifest
11
12
13
+ <%- end -%>
12
14
# Defines the root path route ("/")
13
15
# root "posts#index"
14
16
end
You can’t perform that action at this time.
0 commit comments