<filename>backend/todo/urls.py
from django.urls import path

from todo.models import ToDoItem
from .views import ToDoCategoryView, ToDoItemView, ToDoItemByCategory

urlpatterns = [
    path('category/', ToDoCategoryView.as_view(), name="todo-list"),
    path('item/', ToDoItemView.as_view(), name="todo-list"),
    path('item/<int:cat>/', ToDoItemByCategory.as_view(), name="todo-list"),
]
<filename>backend/todo/urls.py
from django.urls import path

from todo.models import ToDoItem
from .views import ToDoCategoryView, ToDoItemView, ToDoItemByCategory

urlpatterns = [
    path('category/', ToDoCategoryView.as_view(), name="todo-list"),
    path('item/', ToDoItemView.as_view(), name="todo-list"),
    path('item/<int:cat>/', ToDoItemByCategory.as_view(), name="todo-list"),
]