From c2eab3d5b055aab3e9f8cc555ad705ea598307ad Mon Sep 17 00:00:00 2001 From: Joshua Laymon Date: Sun, 24 Aug 2025 01:54:26 +0000 Subject: [PATCH] Update web/illustrations/urls.py --- web/illustrations/urls.py | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) 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