<reponame>AliBigdeli/Django-CBV-DRF-GenericView-TodoApp
from django.urls import path

from .views import TodoListView, TodoDetailApiView

urlpatterns = [
    path("task-list/", TodoListView.as_view(), name="task_list"),
    path(
        "task-detail/<int:todo_id>/",
        TodoDetailApiView.as_view(),
        name="task_detail",
    ),
]

from django.urls import path

from .views import TodoListView, TodoDetailApiView

urlpatterns = [
    path("task-list/", TodoListView.as_view(), name="task_list"),
    path(
        "task-detail/<int:todo_id>/",
        TodoDetailApiView.as_view(),
        name="task_detail",
    ),
]