from django.conf.urls import url, include
from rest_framework import routers
from restapi import views

router = routers.DefaultRouter()
#router.register(r'address', views.AddressViewSet)
router.register(r'user', views.UserViewSet)
router.register(r'item', views.ItemViewSet)


# Wire up our API using automatic URL routing.
# Additionally, we include login URLs for the browsable API.
urlpatterns = [
    url(r'^', include(router.urls)),
    #url(r'^api-auth/', include('rest_framework.urls', namespace='rest_framework'))
]
from django.conf.urls import url, include
from rest_framework import routers
from restapi import views

router = routers.DefaultRouter()
#router.register(r'address', views.AddressViewSet)
router.register(r'user', views.UserViewSet)
router.register(r'item', views.ItemViewSet)


# Wire up our API using automatic URL routing.
# Additionally, we include login URLs for the browsable API.
urlpatterns = [
    url(r'^', include(router.urls)),
    #url(r'^api-auth/', include('rest_framework.urls', namespace='rest_framework'))
]
#router.register(r'address', views.AddressViewSet) # Wire up our API using automatic URL routing. # Additionally, we include login URLs for the browsable API. #url(r'^api-auth/', include('rest_framework.urls', namespace='rest_framework'))