diff --git a/web/illustrations/urls.py b/web/illustrations/urls.py index 39fc891..b053c03 100644 --- a/web/illustrations/urls.py +++ b/web/illustrations/urls.py @@ -1,6 +1,6 @@ # illustrations/urls.py from django.contrib import admin -from django.urls import path +from django.urls import path, re_path from django.contrib.auth import views as auth_views from core import views as core_views @@ -48,4 +48,25 @@ urlpatterns = [ path("api/log-view//", feat_views.api_log_view, name="api_log_view"), path("api/get-recent-views/", feat_views.api_get_recent_views, name="api_get_recent_views"), path("settings/", core_views.settings_home, name="settings_home"), + re_path( + r"^manifest\.webmanifest$", + TemplateView.as_view( + template_name="pwa/manifest.webmanifest", + content_type="application/manifest+json", + ), + name="manifest", + ), + re_path( + r"^service-worker\.js$", + TemplateView.as_view( + template_name="pwa/service-worker.js", + content_type="application/javascript", + ), + name="service_worker", + ), + path( + "offline/", + TemplateView.as_view(template_name="pwa/offline.html"), + name="offline", + ), ] \ No newline at end of file