<reponame>lautarianoo/django_social_network
from django.urls import path
from .views import *

urlpatterns = [
    path('', GroupsView.as_view(), name='groups'),
    path('search', SearchGroup.as_view(), name='search-groups'),
    path('<str:slug>/', GroupView.as_view(), name='group'),
    path('follow/<str:slug>/', FollowGroupView.as_view(), name='follow-group'),
    path('unfollow/<str:slug>/', UnfollowGroup.as_view(), name='unfollow-group'),
    path('<str:slug>/im', ImageGroupView.as_view(), name='image-group'),
    path('delete-feed/<int:pk>/', DeleteFeedGroup.as_view(), name='delete-feed-group'),
    path('<str:slug>/edit', EditGroupView.as_view(), name='edit'),
    path('create', GroupAdd.as_view(), name='group-create')
]

from django.urls import path
from .views import *

urlpatterns = [
    path('', GroupsView.as_view(), name='groups'),
    path('search', SearchGroup.as_view(), name='search-groups'),
    path('<str:slug>/', GroupView.as_view(), name='group'),
    path('follow/<str:slug>/', FollowGroupView.as_view(), name='follow-group'),
    path('unfollow/<str:slug>/', UnfollowGroup.as_view(), name='unfollow-group'),
    path('<str:slug>/im', ImageGroupView.as_view(), name='image-group'),
    path('delete-feed/<int:pk>/', DeleteFeedGroup.as_view(), name='delete-feed-group'),
    path('<str:slug>/edit', EditGroupView.as_view(), name='edit'),
    path('create', GroupAdd.as_view(), name='group-create')
]