from django.contrib import admin
from django.urls import path
from rest_framework.routers import DefaultRouter

from suppliers.views import SupplierViewSet
from users.views import UserViewSet

urlpatterns = [
    path('admin/', admin.site.urls),
]


# ViewSet Router
router = DefaultRouter()
router.register(r'users', UserViewSet, basename='user')
router.register(r'suppliers', SupplierViewSet, basename='supplier')

urlpatterns += router.urls

5695225eb51903158b83095943472dd183f2bdc2
<mask token>

<mask token>
router.register('users', UserViewSet, basename='user')
router.register('suppliers', SupplierViewSet, basename='supplier')
urlpatterns += router.urls

<mask token>
urlpatterns = [path('admin/', admin.site.urls)]
router = DefaultRouter()
router.register('users', UserViewSet, basename='user')
router.register('suppliers', SupplierViewSet, basename='supplier')
urlpatterns += router.urls

from django.contrib import admin
from django.urls import path
from rest_framework.routers import DefaultRouter
from suppliers.views import SupplierViewSet
from users.views import UserViewSet
urlpatterns = [path('admin/', admin.site.urls)]
router = DefaultRouter()
router.register('users', UserViewSet, basename='user')
router.register('suppliers', SupplierViewSet, basename='supplier')
urlpatterns += router.urls

from django.contrib import admin
from django.urls import path
from rest_framework.routers import DefaultRouter

from suppliers.views import SupplierViewSet
from users.views import UserViewSet

urlpatterns = [
    path('admin/', admin.site.urls),
]


# ViewSet Router
router = DefaultRouter()
router.register(r'users', UserViewSet, basename='user')
router.register(r'suppliers', SupplierViewSet, basename='supplier')

urlpatterns += router.urls
