<gh_stars>0
from django.urls import path, include
from . import views

urlpatterns = [
    path('api-auth/', include('rest_framework.urls')),

    path('users/', views.UserList.as_view(), name='users_index'),
    path('users/<int:pk>/', views.UserDetail.as_view(), name='user_show'),

    path('tasks/', views.TaskList.as_view(), name='tasks_index'),
    path('tasks/<int:pk>/', views.TaskDetail.as_view(), name='task_show'),

    path('groups/', views.group_list, name='groups_index'),
    path('groups/<int:pk>/', views.group_detail, name='group_detail'),

    path('group-activities/', views.group_activity_list, name='group_activities_index'),
    path('group-activities/<int:pk>/', views.group_activity_detail, name='group_activity_detail'),
]

from django.urls import path, include
from . import views

urlpatterns = [
    path('api-auth/', include('rest_framework.urls')),

    path('users/', views.UserList.as_view(), name='users_index'),
    path('users/<int:pk>/', views.UserDetail.as_view(), name='user_show'),

    path('tasks/', views.TaskList.as_view(), name='tasks_index'),
    path('tasks/<int:pk>/', views.TaskDetail.as_view(), name='task_show'),

    path('groups/', views.group_list, name='groups_index'),
    path('groups/<int:pk>/', views.group_detail, name='group_detail'),

    path('group-activities/', views.group_activity_list, name='group_activities_index'),
    path('group-activities/<int:pk>/', views.group_activity_detail, name='group_activity_detail'),
]