Skip to content

Instantly share code, notes, and snippets.

@aballah-chamakh
Created July 11, 2019 12:59
Show Gist options
  • Select an option

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

Select an option

Save aballah-chamakh/b6e9d9ba3d9dfc4e4ada53810169c7d6 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 UserViewSet,ProfileViewSet
router = routers.DefaultRouter()
router.register('user', UserViewSet)
router.register('profile', ProfileViewSet)
urlpatterns = [
path('', include(router.urls)),
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment