Created
April 28, 2021 20:17
-
-
Save chapimenge3/4db8a6bbdf597476827c907297195b85 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.urls import path, include | |
from rest_framework import routers | |
# restframework | |
from rest_framework.routers import DefaultRouter | |
# Project | |
from Todo.views import TodoViewset | |
router = DefaultRouter() | |
router.register(r'todo', TodoViewset) | |
urlpatterns = [ | |
path('', include(router.urls)), | |
path('api-auth/', include('rest_framework.urls')) | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment