"""
URL configuration for FIXCARS project.

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/5.1/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path
from . import views

urlpatterns = [
    path('add-income', views.AddIncomeView.as_view(), name="AddIncomeView"),
    path('edit-income/<int:id>', views.EditIncomeView.as_view(), name="EditIncomeView"),
    path('incomes', views.IncomesView.as_view(), name="IncomesView"),
    path('income/delete/<int:id>', views.DeleteIncomeView.as_view(), name="DeleteIncomeView"),
    path('add-expenditure', views.AddExpenditureView.as_view(), name="AddExpenditureView"),
    path('edit-expenditure/<int:id>', views.EditExpenditureView.as_view(), name="EditExpenditureView"),
    path('income-chart', views.IncomeChartView.as_view(), name="incomeChart"),
    path('expenditures', views.ExpendituresView.as_view(), name="ExpendituresView"),
    path('expenditure/delete/<int:id>', views.DeleteExpenditureView.as_view(), name="DeleteExpenditureView"),
    path('expenditure-chart', views.ExpenditureChartView.as_view(), name="incomeChart"),
    path('income/view/<int:id>', views.IncomeView.as_view(), name="incomeView"),
    path('expenditure/view/<int:id>', views.ExpenditureView.as_view(), name="EexpenditureView")
]

