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

# Create a router and register our viewsets with it.
router = DefaultRouter()
router.register(r'plants', views.PlantsViewSet)
router.register(r'category', views.CategoryViewSet)
# The API URLs are now determined automatically by the router.
urlpatterns = [
    path('', include(router.urls)),
]