from django.urls import path, include
from rest_framework.routers import DefaultRouter

from .views import (
    CurrencyViewSet, TaxRateViewSet, BankAccountViewSet,
    BudgetCategoryViewSet, BudgetItemViewSet, InvoiceViewSet,
)

router = DefaultRouter()
router.register(r"currencies", CurrencyViewSet, basename="currency")
router.register(r"tax-rates", TaxRateViewSet, basename="tax-rate")
router.register(r"bank-accounts", BankAccountViewSet, basename="bank-account")
router.register(r"budget-categories", BudgetCategoryViewSet, basename="budget-category")
router.register(r"budget-items", BudgetItemViewSet, basename="budget-item")
router.register(r"finance-invoices", InvoiceViewSet, basename="finance-invoice")

urlpatterns = [
    path("", include(router.urls)),
]
