|
1 | 1 | # -*- coding: utf-8 -*- |
2 | | -from django.conf.urls import url |
| 2 | +from django.urls import re_path |
3 | 3 | from rest_framework.routers import DefaultRouter |
4 | 4 |
|
5 | 5 | from aa_stripe.api import CouponDetailsAPI, CustomerDetailsAPI, CustomersAPI, WebhookAPI |
6 | 6 |
|
7 | 7 | urlpatterns = [ |
8 | | - url(r"^aa-stripe/coupons/(?P<coupon_id>.*)$", CouponDetailsAPI.as_view(), name="stripe-coupon-details"), |
9 | | - url(r"^aa-stripe/customers$", CustomersAPI.as_view(), name="stripe-customers"), |
10 | | - url(r"^aa-stripe/customers/(?P<stripe_customer_id>[\w\-]+)$", CustomerDetailsAPI.as_view(), |
11 | | - name="stripe-customer-details"), |
12 | | - url(r"^aa-stripe/webhooks$", WebhookAPI.as_view(), name="stripe-webhooks") |
| 8 | + re_path(r"^aa-stripe/coupons/(?P<coupon_id>.*)$", CouponDetailsAPI.as_view(), name="stripe-coupon-details"), |
| 9 | + re_path(r"^aa-stripe/customers$", CustomersAPI.as_view(), name="stripe-customers"), |
| 10 | + re_path(r"^aa-stripe/customers/(?P<stripe_customer_id>[\w\-]+)$", CustomerDetailsAPI.as_view(), |
| 11 | + name="stripe-customer-details"), |
| 12 | + re_path(r"^aa-stripe/webhooks$", WebhookAPI.as_view(), name="stripe-webhooks") |
13 | 13 | ] |
14 | 14 |
|
15 | 15 | router = DefaultRouter() |
|
0 commit comments