from django.urls import path,include,re_path
from django.contrib.auth import views as auth_views
from . import views


urlpatterns = [
    path('', views.EventView.as_view(), name='events'),
    path('event/<int:pk>', views.event_detail, name='event_details'),
    path('post_message', views.create_message, name='message_new'),
    path('event/<int:pk>/edit/', views.event_edit, name='event_edit'),
    path('event/create', views.event_create, name='event_create'),
    path('event/<int:pk>/delete/', views.event_delete, name='event_delete'),
    path('private_chat', views.PrivateChatView.as_view(), name='private_chat'),
    path('private_chat/create', views.private_chat_create, name='private_chat_create'),
    path('private_chat/<int:pk>/edit/', views.private_chat_edit, name='private_chat_edit'),
    path('private_chat/<int:pk>/delete', views.private_chat_delete, name='private_chat_delete'),
    path('private_chat/<int:pk>', views.private_chat_detail, name='private_chat_details'),
    path('private_message/create', views.create_private_message, name='create_private_message'),
    path('event/active_users', views.active_users_for_event, name='active_users_for_event'),
]