<reponame>Priyanka9496/pro1
from django.conf.urls import url
from django.urls import path,include
from profile_api import views
from rest_framework.routers import DefaultRouter


router=DefaultRouter()
router.register('hello-viewset',views.HelloViewSet,base_name='hello-viewset')
router.register('profile',views.UserProfileViewSet)
router.register('feed',views.UserProfileFeedViewSet)

urlpatterns=[
    url(r'hello-view/',views.HelloApiView.as_view()),
    url(r'login/',views.UserLoginApiView.as_view()),
    url(r'',include(router.urls))

]

from django.conf.urls import url
from django.urls import path,include
from profile_api import views
from rest_framework.routers import DefaultRouter


router=DefaultRouter()
router.register('hello-viewset',views.HelloViewSet,base_name='hello-viewset')
router.register('profile',views.UserProfileViewSet)
router.register('feed',views.UserProfileFeedViewSet)

urlpatterns=[
    url(r'hello-view/',views.HelloApiView.as_view()),
    url(r'login/',views.UserLoginApiView.as_view()),
    url(r'',include(router.urls))

]