Skip to content

Instantly share code, notes, and snippets.

@aballah-chamakh
Created July 15, 2019 18:37
Show Gist options
  • Select an option

  • Save aballah-chamakh/a5c38cc405f029e5c6378f2f3e91d8ac to your computer and use it in GitHub Desktop.

Select an option

Save aballah-chamakh/a5c38cc405f029e5c6378f2f3e91d8ac to your computer and use it in GitHub Desktop.
from django.conf.urls import include
from django.urls import path
from rest_framework import routers
from .views import DoorViewSet
router = routers.DefaultRouter()
router.register('door', DoorViewSet)
urlpatterns = [
path('', include(router.urls)),
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment