from django.urls import path, include
from .views import *
from rest_framework import routers


router = routers.DefaultRouter()

router.register('posts', PostViewSet)

urlpatterns = [
    path('', include(router.urls))
]

from django.urls import path, include
from .views import *
from rest_framework import routers


router = routers.DefaultRouter()

router.register('posts', PostViewSet)

urlpatterns = [
    path('', include(router.urls))
]
