"""
Themis URL configuration.
"""
from django.urls import path

from themis import views

app_name = "themis"

urlpatterns = [
    # Health checks
    path("ready/", views.ready, name="ready"),
    path("live/", views.live, name="live"),
    # Profile settings
    path("profile/settings/", views.profile_settings, name="profile-settings"),
    # API key management
    path("profile/keys/", views.key_list, name="key-list"),
    path("profile/keys/add/", views.key_create, name="key-create"),
    path("profile/keys/<uuid:pk>/", views.key_detail, name="key-detail"),
    path("profile/keys/<uuid:pk>/edit/", views.key_edit, name="key-edit"),
    path("profile/keys/<uuid:pk>/delete/", views.key_delete, name="key-delete"),
    # Notifications
    path("notifications/", views.notification_list, name="notification-list"),
    path(
        "notifications/<uuid:pk>/read/",
        views.notification_mark_read,
        name="notification-mark-read",
    ),
    path(
        "notifications/read-all/",
        views.notification_mark_all_read,
        name="notification-mark-all-read",
    ),
    path(
        "notifications/<uuid:pk>/dismiss/",
        views.notification_dismiss,
        name="notification-dismiss",
    ),
    path(
        "notifications/count/",
        views.notification_count,
        name="notification-count",
    ),
]
