Skip to content

Commit 730de65

Browse files
committed
Allow /manifest.json access to the pwa_manifest
Fixes CODEOCEAN-16G
1 parent c290d23 commit 730de65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

config/routes.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186

187187
# Render dynamic PWA files from app/views/pwa/*
188188
get 'service-worker', to: 'rails/pwa#service_worker', as: :pwa_service_worker, defaults: {format: :js}
189-
get 'manifest', to: 'rails/pwa#manifest', as: :pwa_manifest, defaults: {format: :webmanifest}
189+
get 'manifest(.:file_extension)', to: 'rails/pwa#manifest', as: :pwa_manifest, defaults: {format: :webmanifest}, format: false, constraints: {file_extension: %w[json webmanifest]}
190190

191191
# Defines the root path route ("/")
192192
root to: 'application#welcome'

0 commit comments

Comments
 (0)