diff options
Diffstat (limited to 'perllib')
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Offline.pm | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Offline.pm b/perllib/FixMyStreet/App/Controller/Offline.pm index e65642899..d8b9180dd 100644 --- a/perllib/FixMyStreet/App/Controller/Offline.pm +++ b/perllib/FixMyStreet/App/Controller/Offline.pm @@ -20,6 +20,15 @@ Offline pages Catalyst Controller - service worker and appcache. =cut +sub service_worker : Path("/service-worker.js") { + my ($self, $c) = @_; + $c->res->content_type('application/javascript'); +} + +sub fallback : Local { + my ($self, $c) = @_; +} + sub manifest: Path("/.well-known/manifest.webmanifest") { my ($self, $c) = @_; $c->res->content_type('application/manifest+json'); |