From 35cd728b3c42f075ac47d803d322170bc7a35631 Mon Sep 17 00:00:00 2001 From: starnakin Date: Wed, 20 Dec 2023 22:49:18 +0100 Subject: [PATCH] core: move tournament url --- tournament/urls.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tournament/urls.py b/tournament/urls.py index 47abf9b..3aeecb5 100644 --- a/tournament/urls.py +++ b/tournament/urls.py @@ -6,5 +6,6 @@ from .viewset import TournamentViewSet urlpatterns = [ path("", TournamentViewSet.as_view({"get": "retrieve"}), name="tournament_page"), - re_path(r"search/(?P\w*)", TournamentViewSet.as_view({"get": "list", "post": "create"}), name="tournaments"), + path("", TournamentViewSet.as_view({"post": "create"}), name="tournament_page"), + re_path(r"search/(?P\w*)", TournamentViewSet.as_view({"get": "list", }), name="tournaments"), ] \ No newline at end of file