from django.urls import path

from . import views


urlpatterns = [
    path("", views.GroupListView.as_view(), name="groups_list"),
    path("create/", views.GroupCreateView.as_view(), name="groups_create"),
    path("<slug:slug>/", views.GroupDetailView.as_view(), name="groups_detail"),
    path("<slug:slug>/join/", views.GroupJoinView.as_view(), name="groups_join"),
    path("<slug:slug>/update/", views.GroupUpdateView.as_view(), name="groups_update"),
    path("<slug:slug>/texts/", views.GroupUpdateTextsView.as_view(), name="groups_update_texts"),
    path("<slug:slug>/vocab/", views.GroupUpdateVocabView.as_view(), name="groups_update_vocab"),
    path("<slug:slug>/delete/", views.GroupDeleteView.as_view(), name="groups_delete"),
]
