Skip to content

Commit

Permalink
[BE] fix CouponDetailsAPI url regexp
Browse files Browse the repository at this point in the history
The problem with 404 error was caused because of an invalid regexp
  • Loading branch information
poxip committed Aug 30, 2017
1 parent 4bf1c1d commit 1c6b60c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aa_stripe/api_urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from aa_stripe.api import CouponDetailsAPI, CustomersAPI, WebhookAPI

urlpatterns = [
url(r"^aa-stripe/coupons/(?P<coupon_id>[\w]+)$", CouponDetailsAPI.as_view(), name="stripe-coupon-details"),
url(r"^aa-stripe/coupons/(?P<coupon_id>.*)$", CouponDetailsAPI.as_view(), name="stripe-coupon-details"),
url(r"^aa-stripe/customers$", CustomersAPI.as_view(), name="stripe-customers"),
url(r"^aa-stripe/webhooks$", WebhookAPI.as_view(), name="stripe-webhooks")
]
Expand Down

0 comments on commit 1c6b60c

Please sign in to comment.