Skip to content

Instantly share code, notes, and snippets.

@MainaKamau92
Created August 3, 2020 04:28
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 MainaKamau92/dc5083fd0fb91f26984277ce5f6c1788 to your computer and use it in GitHub Desktop.
Save MainaKamau92/dc5083fd0fb91f26984277ce5f6c1788 to your computer and use it in GitHub Desktop.
from django.urls import path, include
from rest_framework.routers import DefaultRouter
from pollsapi.tenant.views import ClientViewSet
router = DefaultRouter(trailing_slash=False)
router.register(r'client', ClientViewSet, base_name='clients')
urlpatterns = [
path('', include(router.urls)),
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment