feat: add api

This commit is contained in:
Herculino Trotta
2024-10-09 22:25:22 -03:00
parent 5a2fa2bb2d
commit d66ca1e8af
13 changed files with 243 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
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)),
]