Created
July 11, 2019 12:59
-
-
Save aballah-chamakh/b6e9d9ba3d9dfc4e4ada53810169c7d6 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.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