feat: add finance URL routes
Browse files- finance/urls.py +13 -0
finance/urls.py
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from django.urls import path, include
|
| 2 |
+
from rest_framework.routers import DefaultRouter
|
| 3 |
+
from .views import TransactionViewSet, BudgetViewSet, GoalViewSet, SubscriptionViewSet
|
| 4 |
+
|
| 5 |
+
router = DefaultRouter()
|
| 6 |
+
router.register(r'transactions', TransactionViewSet, basename='transaction')
|
| 7 |
+
router.register(r'budgets', BudgetViewSet, basename='budget')
|
| 8 |
+
router.register(r'goals', GoalViewSet, basename='goal')
|
| 9 |
+
router.register(r'subscriptions', SubscriptionViewSet, basename='subscription')
|
| 10 |
+
|
| 11 |
+
urlpatterns = [
|
| 12 |
+
path('', include(router.urls)),
|
| 13 |
+
]
|