from django.conf.urls import url from django.contrib.auth.decorators import permission_required from geogame.main.views import ( RoundView, RoundRecapView, GameRecapView, NewGameView, ContributeView, CountryAutocomplete, RemoveCoordView ) urlpatterns = [ url(r'^new-game/$', NewGameView.as_view(), name="new-game"), url(r'^round/(?P\d+)/(?P\d+)/$', RoundView.as_view(), name="round-view"), url(r'^round-recap/(?P\d+)/(?P\d+)/$', RoundRecapView.as_view(), name="round-recap-view"), url(r'^remove-coord/(?P\d+)/(?P\d+)/$', RemoveCoordView.as_view(), name="remove-coord"), url(r'^end-recap/(?P\d+)/$', GameRecapView.as_view(), name="end-recap-view"), url(r'^contribute/$', ContributeView.as_view(), name="contribute"), url(r'^country-autocomplete/$', CountryAutocomplete.as_view(), name='country-autocomplete', ), ]