Commit 54786b45 authored by Daniel W Bond's avatar Daniel W Bond

added that listing view to a DefaultRouter

parent d3c84967
# standard libary imports
from __future__ import absolute_import, print_function, unicode_literals
# core django imports
from django.conf.urls import patterns, include, url
from django.conf.urls import include, url
# third party imports
from rest_framework.routers import DefaultRouter
# imports from your apps
from .views import ListingViewSet
# API v1
urlpatterns = patterns('',
)
router = DefaultRouter()
router.register(r'listings', ListingViewSet, 'listing_list')
urlpatterns = router.urls
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment