chore(dgsi/urls): Harmonize

This commit is contained in:
Tom Hubrecht 2025-02-02 11:08:27 +01:00
parent b1d80b3837
commit 750b85d792
Signed by: thubrecht
SSH key fingerprint: SHA256:r+nK/SIcWlJ0zFZJGHtlAoRwq1Rm+WcKAm5ADYMoQPc

View file

@ -7,14 +7,22 @@ app_name = "dgsi"
urlpatterns = [
# Misc views
path("", views.IndexView.as_view(), name="dgn-index"),
path(
"",
views.IndexView.as_view(),
name="dgn-index",
),
path(
"mentions-legales",
TemplateView.as_view(template_name="dgsi/mentions-legales.html"),
name="dgn-mentions-legales",
),
# Archives
path("archives/", views.ArchiveListView.as_view(), name="dgn-archives"),
path(
"archives/",
views.ArchiveListView.as_view(),
name="dgn-archives",
),
path(
"archives/<int:pk>/",
views.ProtectedArchiveView.as_view(),
@ -32,7 +40,11 @@ urlpatterns = [
name="dgn-accept_legal_document",
),
# Account views
path("accounts/profile/", views.ProfileView.as_view(), name="dgn-profile"),
path(
"accounts/profile/",
views.ProfileView.as_view(),
name="dgn-profile",
),
path(
"accounts/profile/apple-config/",
views.AppleProfileView.as_view(),
@ -74,7 +86,11 @@ urlpatterns = [
name="dgn-forbidden_account",
),
# Services views
path("services/", views.ServiceListView.as_view(), name="dgn-services"),
path(
"services/",
views.ServiceListView.as_view(),
name="dgn-services",
),
path(
"services/redirect/<int:pk>/",
views.ServiceRedirectView.as_view(),