chore: move shop urls
This commit is contained in:
parent
ac98ec7338
commit
68c9c895a6
|
|
@ -55,12 +55,6 @@ from vbv_lernwelt.importer.views import (
|
||||||
t2l_sync,
|
t2l_sync,
|
||||||
)
|
)
|
||||||
from vbv_lernwelt.notify.views import email_notification_settings
|
from vbv_lernwelt.notify.views import email_notification_settings
|
||||||
from vbv_lernwelt.shop.views import (
|
|
||||||
checkout_vv,
|
|
||||||
get_billing_address,
|
|
||||||
transaction_webhook,
|
|
||||||
update_billing_address,
|
|
||||||
)
|
|
||||||
from wagtail import urls as wagtail_urls
|
from wagtail import urls as wagtail_urls
|
||||||
from wagtail.admin import urls as wagtailadmin_urls
|
from wagtail.admin import urls as wagtailadmin_urls
|
||||||
from wagtail.documents import urls as wagtaildocs_urls
|
from wagtail.documents import urls as wagtaildocs_urls
|
||||||
|
|
@ -178,10 +172,7 @@ urlpatterns = [
|
||||||
name='edoniq_export_students_and_trainers'),
|
name='edoniq_export_students_and_trainers'),
|
||||||
|
|
||||||
# shop
|
# shop
|
||||||
path(r'api/shop/billing-address/', get_billing_address, name='get-billing-address'),
|
path("api/shop/", include("shop.urls")),
|
||||||
path(r'api/shop/billing-address/update/', update_billing_address, name='update-billing-address'),
|
|
||||||
path(r'api/shop/vv/checkout/', checkout_vv, name='checkout-vv'),
|
|
||||||
path(r'api/shop/transaction/webhook/', django_view_authentication_exempt(transaction_webhook), name='shop-transaction-webhook'),
|
|
||||||
|
|
||||||
# importer
|
# importer
|
||||||
path(
|
path(
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,22 @@
|
||||||
|
from django.urls import path
|
||||||
|
|
||||||
|
from vbv_lernwelt.core.middleware.auth import django_view_authentication_exempt
|
||||||
|
from vbv_lernwelt.shop.views import (
|
||||||
|
checkout_vv,
|
||||||
|
get_billing_address,
|
||||||
|
transaction_webhook,
|
||||||
|
update_billing_address,
|
||||||
|
)
|
||||||
|
|
||||||
|
urlpatterns = [
|
||||||
|
path("billing-address/", get_billing_address, name="get-billing-address"),
|
||||||
|
path(
|
||||||
|
"billing-address/update/", update_billing_address, name="update-billing-address"
|
||||||
|
),
|
||||||
|
path("vv/checkout/", checkout_vv, name="checkout-vv"),
|
||||||
|
path(
|
||||||
|
"transaction/webhook/",
|
||||||
|
django_view_authentication_exempt(transaction_webhook),
|
||||||
|
name="shop-transaction-webhook",
|
||||||
|
),
|
||||||
|
]
|
||||||
Loading…
Reference in New Issue