Skip to content

Commit

Permalink
Refactorise les URL munin
Browse files Browse the repository at this point in the history
  • Loading branch information
Arnaud-D committed Jun 26, 2022
1 parent 672d85f commit 32d8a10
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions zds/munin/urls.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
from django.urls import re_path
from django.urls import path

from zds.munin.views import total_topics, total_posts, total_mps, total_tutorials, total_articles, total_opinions


urlpatterns = [
re_path(r"^total_topics/$", total_topics, name="total_topics"),
re_path(r"^total_posts/$", total_posts, name="total_posts"),
re_path(r"^total_mps/$", total_mps, name="total_mp"),
re_path(r"^total_tutorials/$", total_tutorials, name="total_tutorial"),
re_path(r"^total_articles/$", total_articles, name="total_articles"),
re_path(r"^total_opinions/$", total_opinions, name="total_opinions"),
path("total_topics/", total_topics, name="total_topics"),
path("total_posts/", total_posts, name="total_posts"),
path("total_mps/", total_mps, name="total_mp"),
path("total_tutorials/", total_tutorials, name="total_tutorial"),
path("total_articles/", total_articles, name="total_articles"),
path("total_opinions/", total_opinions, name="total_opinions"),
]
2 changes: 1 addition & 1 deletion zds/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def location(self, item):
re_path(r"^pages/", include(("zds.pages.urls", ""))),
re_path(r"^galerie/", include(("zds.gallery.urls", ""))),
re_path(r"^rechercher/", include(("zds.searchv2.urls", "zds.searchv2"), namespace="search")),
re_path(r"^munin/", include(("zds.munin.urls", ""))),
path("munin/", include(("zds.munin.urls", ""))),
re_path(r"^mise-en-avant/", include(("zds.featured.urls", ""))),
re_path(r"^notifications/", include(("zds.notification.urls", ""))),
path("", include(("social_django.urls", "social_django"), namespace="social")),
Expand Down

0 comments on commit 32d8a10

Please sign in to comment.