﻿from django.conf.urls import patterns, include, url
from django.contrib import admin

urlpatterns = patterns('',
    url(r'^$', 'cards.views.search', name='search'),

    url(r'^card/(?P<card_id>\d+)/$', 'cards.views.single_card', name='single_card'),
    url(r'^card/report/(?P<card_id>\d+)/submit$', 'cards.views.report_card_submit', name='submit-report'),
    url(r'^card/report/(?P<card_id>\d+)/$', 'cards.views.report_card', name='report'),

    url(r'^booster/(?P<booster_id>\d+)/$', 'cardsources.views.view_booster', name='booster'),
    url(r'^boosters/$', 'cardsources.views.boosters_list', name='boosters'),

    url(r'^deck/(?P<deck_id>\d+)/$', 'cardsources.views.view_deck', name='deck'),
    url(r'^decks/$', 'cardsources.views.decks_list', name='decks'),

    url(r'^admin/', include(admin.site.urls)),
)
