from django.conf.urls import include, url

from donations.views import DonateAPI, VerifyAPI

app_name = 'donations'

api_urls = ([
    url(r'^donate/$', DonateAPI.as_view(), name="donate"),
    url(r'^verify/(?P<pk>[0-9]+)$', VerifyAPI.as_view(), name="verify"),
], "donations")

donations = ([
    url(r'^api/', include(api_urls, namespace="api")),
], "donations")

urlpatterns = [
    url(r'^', include(donations, namespace="donations"))
]
