2023-12-20 15:09:31 -05:00
|
|
|
from django.urls import path, re_path
|
2023-12-20 13:15:47 -05:00
|
|
|
from django.conf import settings
|
|
|
|
from django.conf.urls.static import static
|
|
|
|
|
2023-12-20 15:09:31 -05:00
|
|
|
from .viewset import TournamentViewSet
|
2023-12-20 13:15:47 -05:00
|
|
|
|
|
|
|
urlpatterns = [
|
2023-12-20 15:57:16 -05:00
|
|
|
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"),
|
2023-12-20 13:15:47 -05:00
|
|
|
]
|