35 lines
1.1 KiB
Python
35 lines
1.1 KiB
Python
from django.urls import path, include
|
|
|
|
from core.apps.tasks.views import task, column, comment, label, board
|
|
|
|
urlpatterns = [
|
|
path('column/', include(
|
|
[
|
|
path('list/', column.ColumnListApiView.as_view()),
|
|
path('create/', column.ColumnCreateApiView.as_view()),
|
|
path('<int:id>/update/', column.ColumnUpdateApiView.as_view()),
|
|
path('<int:id>/delete/', column.ColumnDeleteApiView.as_view())
|
|
]
|
|
)),
|
|
path('label/', include(
|
|
[
|
|
path('', label.LabelListCreateApiView.as_view()),
|
|
path('<int:id>/', label.LabelRetrieveUpdateDestroyApiView.as_view()),
|
|
]
|
|
)),
|
|
path('task/', include(
|
|
[
|
|
path('list/', task.TaskListView.as_view()),
|
|
path('<int:id>/', task.TaskDetailView.as_view()),
|
|
path('create/', task.TaskCreateView.as_view()),
|
|
]
|
|
)),
|
|
path('comment/', include(
|
|
[
|
|
path('', comment.CommentListCreateAPIView.as_view()),
|
|
path('<int:pk>/', comment.CommentDetailAPIView.as_view()),
|
|
]
|
|
)),
|
|
path('board/', board.BoardListView.as_view()),
|
|
]
|