from django.urls import path

from .views import (
    api_health_view,
    api_login_view,
    api_logout_view,
    api_profile_view,
    api_token_refresh_view,
    api_transaction_detail_view,
    api_transactions_view,
    home,
    login_view,
    logout_view,
    profile_view,
    report_pdf_view,
    reports_view,
    signup_view,
    transaction_create_view,
    transaction_detail_view,
    transaction_list_view,
)

urlpatterns = [
    path('', home, name='home'),
    path('api/health/', api_health_view, name='api_health'),
    path('api/login/', api_login_view, name='api_login'),
    path('api/token/', api_login_view, name='api_token_login'),
    path('api/token/refresh/', api_token_refresh_view, name='api_token_refresh'),
    path('api/logout/', api_logout_view, name='api_logout'),
    path('api/profile/', api_profile_view, name='api_profile'),
    path('api/transactions/', api_transactions_view, name='api_transactions'),
    path('api/transactions/<int:transaction_id>/', api_transaction_detail_view, name='api_transaction_detail'),
    path('signup/', signup_view, name='signup'),
    path('login/', login_view, name='login'),
    path('logout/', logout_view, name='logout'),
    path('profile/', profile_view, name='profile'),
    path('transactions/new/', transaction_create_view, name='transaction_create'),
    path('transactions/', transaction_list_view, name='transaction_list'),
    path('transactions/<int:transaction_id>/', transaction_detail_view, name='transaction_detail'),
    path('reports/', reports_view, name='reports'),
    path('reports/pdf/', report_pdf_view, name='report_pdf'),
]
