Created
February 3, 2021 16:23
-
-
Save svalordev/1d30d6be3c2edd7e3d07494ee683cb7d to your computer and use it in GitHub Desktop.
This file contains hidden or 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 include, path | |
from rest_framework import routers | |
from .views import BookViewSet | |
router = routers.DefaultRouter() | |
router.register(r'books', BookViewSet) | |
urlpatterns = [ | |
path('', include(router.urls)), | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment