Skip to content

Instantly share code, notes, and snippets.

@shaurya-blip
Created February 3, 2021 16:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shaurya-blip/1d30d6be3c2edd7e3d07494ee683cb7d to your computer and use it in GitHub Desktop.
Save shaurya-blip/1d30d6be3c2edd7e3d07494ee683cb7d to your computer and use it in GitHub Desktop.
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