__author__ = 'Cheng'

from django.conf.urls import patterns, url

import views

urlpatterns = patterns('',
                       # /pledges/
                       url(r'^$', views.index, name='index'),
                       url(r'^reward/list/$', views.list_rewards, name='list_rewards'),
                       url(r'^reward/collect/$', views.collect_reward, name='collect_reward'),
                       # /pledges/23
                       url(r'^(?P<pledge_id>\d+)/$', views.detail, name='detail'),
                       url(r'^follow/(?P<pledge_id>\d+)/$', views.follow, name='follow'),
                       url(r'^finish/(?P<pledge_id>\d+)/$', views.finish, name='finish'),
                       url(r'^success/(?P<pledge_id>\d+)/$', views.congrats, name='congrats'),
                       url(r'^already/(?P<pledge_id>\d+)/$', views.already, name='already'),
                       url(r'^share/(?P<pledge_id>\d+)/$', views.share, name='share'),
                       # /pledges/23/
                       url(r'^(?P<pledge_id>\d+)/results/$', views.results, name='results'),
                       url(r'^create_ajax/$', views.create_ajax, name='create_ajax'),
                       url(r'^paypal/$', views.get_paypal, name='paypal'),
)
