mirror of
https://github.com/eitchtee/WYGIWYH.git
synced 2026-03-18 23:44:03 +01:00
19 lines
665 B
Python
19 lines
665 B
Python
from django.urls import path, include
|
|
from rest_framework import routers
|
|
|
|
from apps.api import views
|
|
|
|
router = routers.DefaultRouter()
|
|
router.register(r"transactions", views.TransactionViewSet)
|
|
router.register(r"categories", views.TransactionCategoryViewSet)
|
|
router.register(r"tags", views.TransactionTagViewSet)
|
|
router.register(r"installment-plans", views.InstallmentPlanViewSet)
|
|
router.register(r"account-groups", views.AccountGroupViewSet)
|
|
router.register(r"accounts", views.AccountViewSet)
|
|
router.register(r"currencies", views.CurrencyViewSet)
|
|
router.register(r"exchange-rates", views.ExchangeRateViewSet)
|
|
|
|
urlpatterns = [
|
|
path("", include(router.urls)),
|
|
]
|