demo-backend/todos/urls.py
2025-01-16 10:20:20 -03:00

12 lines
383 B
Python

from django.urls import path, include
from rest_framework.routers import DefaultRouter
from .views import TodoViewSet, register_user, login_user
router = DefaultRouter()
router.register(r'todos', TodoViewSet, basename='todo')
urlpatterns = [
path('', include(router.urls)),
path('register/', register_user, name='register'),
path('login/', login_user, name='login'),
]