core: move tournament url

This commit is contained in:
starnakin 2023-12-20 22:49:18 +01:00
parent be43e45947
commit 35cd728b3c

View File

@ -6,5 +6,6 @@ from .viewset import TournamentViewSet
urlpatterns = [ urlpatterns = [
path("<int:pk>", TournamentViewSet.as_view({"get": "retrieve"}), name="tournament_page"), path("<int:pk>", TournamentViewSet.as_view({"get": "retrieve"}), name="tournament_page"),
re_path(r"search/(?P<state>\w*)", TournamentViewSet.as_view({"get": "list", "post": "create"}), name="tournaments"), path("", TournamentViewSet.as_view({"post": "create"}), name="tournament_page"),
re_path(r"search/(?P<state>\w*)", TournamentViewSet.as_view({"get": "list", }), name="tournaments"),
] ]