from django.conf.urls import url from apps.game import views from util.routing import method_dispatch urlpatterns = [ url(r'^games/$', method_dispatch(GET=views.games.index, ), name='games'), url(r'^games/new/$', method_dispatch( GET=views.games.new, POST=views.games.new, ), name='games_new'), url(r'^games/(?P<id>.+)/$', method_dispatch(GET=views.games.show, ), name='games_show') ]
from django.conf.urls import url from apps.leaderboard import views from util.routing import method_dispatch urlpatterns = [ url(r'^leaderboard/$', method_dispatch( GET=views.leaderboard.index, )), url(r'^leaderboard/snakes/$', method_dispatch( GET=views.snakes.index, )), url(r'^leaderboard/snakes/(?P<id>\w+)/$', method_dispatch( POST=views.snakes.create, DELETE=views.snakes.delete, )), ]
from django.conf.urls import url from apps.tournament import views as tournament_views from util.routing import method_dispatch urlpatterns = [ url( r'^team/$', method_dispatch( GET=tournament_views.team.index, PUT=tournament_views.team.update, )), url( r'^team/new/$', method_dispatch( GET=tournament_views.team.new, POST=tournament_views.team.new, )), url(r'^team/edit/$', method_dispatch(GET=tournament_views.team.edit, )), url(r'^team/members/$', method_dispatch(GET=tournament_views.members.index, )), url( r'^team/members/new/$', method_dispatch( GET=tournament_views.members.new, POST=tournament_views.members.new, )), url(r'^team/members/(?P<id>\w+)/$', method_dispatch(DELETE=tournament_views.members.delete, )), ]
from django.conf.urls import url from apps.game import views from util.routing import method_dispatch urlpatterns = [ url(r"^games/$", method_dispatch(GET=views.games.index), name="games"), url( r"^games/new/$", method_dispatch(GET=views.games.new, POST=views.games.new), name="games_new", ), url(r"^games/(?P<id>.+)/$", method_dispatch(GET=views.games.show), name="games_show"), ]
from django.conf.urls import url from apps.tournament import views as tournament_views from util.routing import method_dispatch urlpatterns = [ url(r'^team/$', method_dispatch( GET=tournament_views.team.index, PUT=tournament_views.team.update, )), url(r'^team/new/$', method_dispatch( GET=tournament_views.team.new, POST=tournament_views.team.new, )), url(r'^team/edit/$', method_dispatch( GET=tournament_views.team.edit, )), url(r'^team/members/$', method_dispatch( GET=tournament_views.members.index, )), url(r'^team/members/new/$', method_dispatch( GET=tournament_views.members.new, POST=tournament_views.members.new, )), url(r'^team/members/(?P<id>\w+)/$', method_dispatch( DELETE=tournament_views.members.delete, )), url(r'^tournament/(?P<tournament_id>\w+)/bracket/new/$', method_dispatch( GET=tournament_views.tournament_bracket.new, POST=tournament_views.tournament_bracket.new, )), url(r'^tournament/bracket/(?P<bracket_id>\w+)/edit/$', method_dispatch(
from django.conf.urls import url from apps.snake import views from util.routing import method_dispatch urlpatterns = [ url(r'^snakes/$', method_dispatch( GET=views.snakes.index, POST=views.snakes.create, ), name='snakes'), url(r'^snakes/new/$', method_dispatch( GET=views.snakes.new, ), name='snakes_new'), url(r'^snakes/(?P<id>\w+)/$', method_dispatch( DELETE=views.snakes.delete, PUT=views.snakes.update, ), name='snakes_show'), url(r'^snakes/(?P<id>\w+)/edit/$', method_dispatch( GET=views.snakes.edit, ), name='snakes_edit'), ]
from django.conf.urls import url from apps.snake import views from util.routing import method_dispatch urlpatterns = [ url( r"^snakes/$", method_dispatch(GET=views.snakes.index, POST=views.snakes.create), name="snakes", ), url(r"^snakes/new/$", method_dispatch(GET=views.snakes.new), name="snakes_new"), url( r"^snakes/(?P<id>\w+)/$", method_dispatch(DELETE=views.snakes.delete, PUT=views.snakes.update), name="snakes_show", ), url( r"^snakes/(?P<id>\w+)/edit/$", method_dispatch(GET=views.snakes.edit), name="snakes_edit", ), ]