chore: move shop urls

This commit is contained in:
Reto Aebersold 2023-11-17 14:53:30 +01:00 committed by Christian Cueni
parent ac98ec7338
commit 68c9c895a6
2 changed files with 23 additions and 10 deletions

View File

@ -55,12 +55,6 @@ from vbv_lernwelt.importer.views import (
t2l_sync,
)
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.admin import urls as wagtailadmin_urls
from wagtail.documents import urls as wagtaildocs_urls
@ -178,10 +172,7 @@ urlpatterns = [
name='edoniq_export_students_and_trainers'),
# shop
path(r'api/shop/billing-address/', get_billing_address, name='get-billing-address'),
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'),
path("api/shop/", include("shop.urls")),
# importer
path(

View File

@ -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",
),
]