diff --git a/tournament/urls.py b/tournament/urls.py index f614391..47abf9b 100644 --- a/tournament/urls.py +++ b/tournament/urls.py @@ -5,6 +5,6 @@ from django.conf.urls.static import static from .viewset import TournamentViewSet urlpatterns = [ - path("", TournamentViewSet.as_view({"get": "retrieve", "post": "create"}), name="tournament_page"), - re_path(r"()?", TournamentViewSet.as_view({"get": "list"}), name="tournaments"), + path("", TournamentViewSet.as_view({"get": "retrieve"}), name="tournament_page"), + re_path(r"search/(?P\w*)", TournamentViewSet.as_view({"get": "list", "post": "create"}), name="tournaments"), ] \ No newline at end of file