Fakultas Ilmu Komputer UI

urls.py 570 Bytes
Newer Older
Muzaki Azami's avatar
Muzaki Azami committed
1
from rest_framework import routers
2
3
from .views import CartViewSet, PaymentViewSet, TransactionStatusViewSet, \
    MidtransRedirectionViewSet
Muzaki Azami's avatar
Muzaki Azami committed
4
5
6

router = routers.SimpleRouter()
router.register('payment/cart', CartViewSet)
Glenda Emanuella Sutanto's avatar
Glenda Emanuella Sutanto committed
7
8
router.register('payment/midtrans', PaymentViewSet, \
    basename="Payment")
9
10
router.register('payment/set-transaction-status', TransactionStatusViewSet, \
    basename="TransactionStatus")
11
12
router.register('payment/midtrans-redirection', MidtransRedirectionViewSet, \
    basename="MidtransRedirection")
Muzaki Azami's avatar
Muzaki Azami committed
13
14
15
16

urlpatterns = []

urlpatterns += router.urls