* Add end-point for initiating a request for credit from a provider. * Add an end-point for a provider to update the status of a request (approved / denied).
23 lines
459 B
Python
23 lines
459 B
Python
"""
|
|
URLs for the credit app.
|
|
"""
|
|
from django.conf.urls import patterns, url
|
|
|
|
from .views import create_credit_request, credit_provider_callback
|
|
|
|
urlpatterns = patterns(
|
|
'',
|
|
|
|
url(
|
|
r"^v1/provider/(?P<provider_id>[^/]+)/request/$",
|
|
create_credit_request,
|
|
name="create_request"
|
|
),
|
|
|
|
url(
|
|
r"^v1/provider/(?P<provider_id>[^/]+)/callback/?$",
|
|
credit_provider_callback,
|
|
name="provider_callback"
|
|
),
|
|
)
|