from django.urls import path

from . import views

app_name = 'announcements'

urlpatterns = [
    path('announcements/', views.announcement_list, name='list'),
    path('announcements/new/', views.announcement_create, name='create'),
    path('announcements/personal/', views.personal_notifications, name='personal'),
    path('announcements/mark-all-read/', views.mark_all_notifications_read, name='mark_all_read'),
    path('announcements/<int:pk>/', views.announcement_detail, name='detail'),
    path('announcements/<int:pk>/edit/', views.announcement_edit, name='edit'),
    path('announcements/<int:pk>/delete/', views.announcement_delete, name='delete'),
    path('announcements/<int:pk>/comments/add/', views.announcement_add_comment, name='add_comment'),
    path('announcements/<int:pk>/comments/<int:comment_id>/edit/', views.announcement_edit_comment, name='edit_comment'),
    path('announcements/<int:pk>/comments/<int:comment_id>/delete/', views.announcement_delete_comment, name='delete_comment'),
]
