from django.contrib import admin
from django.urls import path
from django.contrib.auth import views as auth_views
from core import views as core_views

urlpatterns = [
  path("admin/", admin.site.urls),
  path("login/", core_views.login_view, name="login"),
  path("logout/", auth_views.LogoutView.as_view(), name="logout"),
  path("", core_views.search_page, name="home"),
  path("search/", core_views.search_page, name="search"),
  path("entry/<int:entry_id>/", core_views.entry_view, name="entry_view"),
  path("entry/<int:entry_id>/edit/", core_views.entry_edit, name="entry_edit"),
  path("entry/<int:entry_id>/delete/", core_views.entry_delete, name="entry_delete"),
  path("nav/next/", core_views.nav_next, name="nav_next"),
  path("nav/prev/", core_views.nav_prev, name="nav_prev"),
  path("import/", core_views.import_wizard, name="import_wizard"),
  path("export/csv/", core_views.export_csv, name="export_csv"),
  path("stats/", core_views.stats_page, name="stats"),
]
