from django.urls import include, path
from wagtail.admin import urls as wagtailadmin_urls

from .views import ManifestView, OfflineFallbackView, ServiceWorkerView

urlpatterns = [
    path("manifest.json", ManifestView.as_view(), name="manifest_json"),
    path(
        "serviceworker.js", ServiceWorkerView.as_view(), name="mobileapp_serviceworker"
    ),
    path("offline/", OfflineFallbackView.as_view(), name="mobileapp_offline"),
    path("admin/", include(wagtailadmin_urls)),
]
