from django.urls import path from . import views urlpatterns = [ path("", views.IndexView.as_view(), name="index"), path("media/user//", views.MediaView.as_view(), name="media"), path("login", views.LoginView.as_view(), name="login"), path("logout", views.LogoutView.as_view(), name="logout"), path("transactions", views.TransactionListView.as_view(), name="transactions"), path("snapshots", views.SnapshotListView.as_view(), name="snapshots"), path("account", views.AccountCreateView.as_view(), name="account"), path("transaction", views.TransactionCreateView.as_view(), name="transaction"), path( "transaction//invoice", views.InvoiceCreateView.as_view(), name="invoice", ), path("category", views.CategoryCreateView.as_view(), name="category"), path("snapshot", views.SnapshotCreateView.as_view(), name="snapshot"), path("account/", views.AccountUpdateView.as_view(), name="account"), path( "account//transactions", views.AccountTListView.as_view(), name="account_transactions", ), path( "account//snapshots", views.AccountSListView.as_view(), name="account_snapshots", ), path( "account//snapshot", views.SnapshotCreateView.as_view(), name="snapshot", ), path("transaction/", views.TransactionUpdateView.as_view(), name="transaction"), path( "transaction//invoice/", views.InvoiceUpdateView.as_view(), name="invoice", ), path("category/", views.CategoryUpdateView.as_view(), name="category"), path( "category//transactions", views.CategoryTListView.as_view(), name="category_transactions", ), path("snapshot/", views.SnapshotUpdateView.as_view(), name="snapshot"), path( "snapshot//transactions", views.SnapshotTListView.as_view(), name="snapshot_transactions", ), path( "snapshot//transaction", views.TransactionCreateView.as_view(), name="transaction", ), path( "account//delete", views.AccountDeleteView.as_view(), name="del_account", ), path( "transaction//delete", views.TransactionDeleteView.as_view(), name="del_transaction", ), path( "transaction//invoice//delete", views.InvoiceDeleteView.as_view(), name="del_invoice", ), path( "category//delete", views.CategoryDeleteView.as_view(), name="del_category" ), path( "snapshot//delete", views.SnapshotDeleteView.as_view(), name="del_snapshot" ), path("search", views.SearchView.as_view(), name="search"), path("search/", views.SearchView.as_view(), name="search"), ]