Update web/illustrations/urls.py
This commit is contained in:
parent
b880085720
commit
c2eab3d5b0
@ -1,6 +1,6 @@
|
|||||||
# illustrations/urls.py
|
# illustrations/urls.py
|
||||||
from django.contrib import admin
|
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 django.contrib.auth import views as auth_views
|
||||||
|
|
||||||
from core import views as core_views
|
from core import views as core_views
|
||||||
@ -48,4 +48,25 @@ urlpatterns = [
|
|||||||
path("api/log-view/<int:entry_id>/", feat_views.api_log_view, name="api_log_view"),
|
path("api/log-view/<int:entry_id>/", 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("api/get-recent-views/", feat_views.api_get_recent_views, name="api_get_recent_views"),
|
||||||
path("settings/", core_views.settings_home, name="settings_home"),
|
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",
|
||||||
|
),
|
||||||
]
|
]
|
||||||
Loading…
Reference in New Issue
Block a user