from django.urls import path,include
from .views import HelloApiVeiw,HelloViewSet,ProfileViewSet
from rest_framework.routers import DefaultRouter

router = DefaultRouter()
router.register('helloviewset/',HelloViewSet,basename='helloviewset')
router.register('profile/',ProfileViewSet)

urlpatterns =[
  path('hello/',HelloApiVeiw.as_view()),
  path('',include(router.urls))
]
from django.urls import path,include
from .views import HelloApiVeiw,HelloViewSet,ProfileViewSet
from rest_framework.routers import DefaultRouter

router = DefaultRouter()
router.register('helloviewset/',HelloViewSet,basename='helloviewset')
router.register('profile/',ProfileViewSet)

urlpatterns =[
  path('hello/',HelloApiVeiw.as_view()),
  path('',include(router.urls))
]