from django.urls import path
from . import views

app_name = 'groups'

urlpatterns = [
    path('', views.GroupsHubView.as_view(), name='hub'),
    path('create/', views.GroupCreateView.as_view(), name='create'),
    path('<int:pk>/', views.GroupDetailView.as_view(), name='detail'),
    path('<int:pk>/edit/', views.GroupUpdateView.as_view(), name='edit'),
    path('<int:pk>/members/', views.GroupMembersView.as_view(), name='members'),
    path('<int:pk>/join/', views.GroupJoinView.as_view(), name='join'),
    path('<int:pk>/leave/', views.GroupLeaveView.as_view(), name='leave'),
    path('<int:pk>/moderation/', views.GroupModerationView.as_view(), name='moderation'),
]
