I got a sw.js
file generated by offline-plugin in 'app/public/packs/'.
I have to respond to a GET to /sw.js
with app/public/packs/sw.js
.
No redirect_to
, I have to serve it from there to have the service worker controlling the root scope.
How do I write a controller to respond to localhost/sw.js
with the content from localhost/packs/sw.js
?