21 lines
710 B
Python
21 lines
710 B
Python
|
|
from django.urls import path
|
||
|
|
|
||
|
|
from .api.views import (
|
||
|
|
ActivateFeatureView,
|
||
|
|
CreatePurchaseView,
|
||
|
|
FeatureListView,
|
||
|
|
GemPackListView,
|
||
|
|
VerifyPurchaseView,
|
||
|
|
WalletView,
|
||
|
|
)
|
||
|
|
|
||
|
|
app_name = "billing"
|
||
|
|
urlpatterns = [
|
||
|
|
path("wallet/", WalletView.as_view(), name="wallet"),
|
||
|
|
path("features/", FeatureListView.as_view(), name="feature-list"),
|
||
|
|
path("features/<slug:key>/activate/", ActivateFeatureView.as_view(), name="feature-activate"),
|
||
|
|
path("gem-packs/", GemPackListView.as_view(), name="gem-pack-list"),
|
||
|
|
path("purchases/", CreatePurchaseView.as_view(), name="purchase-create"),
|
||
|
|
path("purchases/<int:purchase_id>/verify/", VerifyPurchaseView.as_view(), name="purchase-verify"),
|
||
|
|
]
|