39 lines
677 B
Python
39 lines
677 B
Python
from django.urls import path
|
|
from .views import (
|
|
IncreaseAPIView,
|
|
DecreaseAPIView,
|
|
TransferAPIView,
|
|
TransactionListAPIView,
|
|
TransactionDetailAPIView
|
|
)
|
|
|
|
|
|
urlpatterns = [
|
|
|
|
path("increase/", IncreaseAPIView.as_view(), name="increase"),
|
|
|
|
path(
|
|
"decrease/",
|
|
DecreaseAPIView.as_view(),
|
|
name="decrease"
|
|
),
|
|
|
|
path(
|
|
"transfer/",
|
|
TransferAPIView.as_view(),
|
|
name="transfer"
|
|
),
|
|
|
|
path(
|
|
"list/",
|
|
TransactionListAPIView.as_view(),
|
|
name="transaction-list"
|
|
),
|
|
|
|
path(
|
|
"detail/<int:id>/",
|
|
TransactionDetailAPIView.as_view(),
|
|
name="transaction-detail"
|
|
),
|
|
|
|
] |