<reponame>GDistel/product-sparrer
from django.urls import path, include
from rest_framework.routers import DefaultRouter
from rest_framework.schemas import get_schema_view
from . import views

schema_view = get_schema_view(title='Product-sparrer API')

# Create a router and register our viewsets with it.
router = DefaultRouter()
router.register(r'users', views.UsersViewSet)


# The API URLs are now determined automatically by the router.
urlpatterns = [
    path('', include(router.urls)),
    path('schema/', schema_view)
]

from django.urls import path, include
from rest_framework.routers import DefaultRouter
from rest_framework.schemas import get_schema_view
from . import views

schema_view = get_schema_view(title='Product-sparrer API')

# Create a router and register our viewsets with it.
router = DefaultRouter()
router.register(r'users', views.UsersViewSet)


# The API URLs are now determined automatically by the router.
urlpatterns = [
    path('', include(router.urls)),
    path('schema/', schema_view)
]
# Create a router and register our viewsets with it. # The API URLs are now determined automatically by the router.