from django.conf.urls import patterns, url

from cookiecutters import views

urlpatterns = patterns('',
    url(r'cookies/$', views.CookieListView.as_view(), name='cookie_list'),
    url(r'status/(?P<task_id>.+)$', views.BakingStatusView.as_view(), name='task_status'),
    url(r'(?P<username>\w+)/(?P<cookie>\w+)/bake/$', views.BakeCookieView.as_view(), name='bake_cookie'),
    url(r'(?P<username>\w+)/(?P<cookie>\w+)/$', views.JSONBakeView.as_view()),
    url(r'$', views.HomeView.as_view(), name='cookie_list'),
)
