Files
django-pwa/pwa/urls.py
Sahil Nirkhe 991a6ee8c2 Escape wildcard in paths
Both serviceworker.js and manifest.json load even if the '.' character is replaced by any other character. This regex fix will prevent that.
2020-06-22 21:57:09 +05:30

11 lines
339 B
Python

from django.conf.urls import url
from .views import manifest, service_worker, offline
# Serve up serviceworker.js and manifest.json at the root
urlpatterns = [
url(r'^serviceworker\.js$', service_worker, name='serviceworker'),
url(r'^manifest\.json$', manifest, name='manifest'),
url('^offline/$', offline, name='offline')
]