2015-05-27 22:33:19 +00:00
|
|
|
from django.conf.urls import patterns, url, include
|
|
|
|
|
|
|
|
from rest_framework import routers
|
2014-12-23 08:29:58 +00:00
|
|
|
|
2014-12-23 08:56:04 +00:00
|
|
|
from . import views
|
2015-05-27 22:33:19 +00:00
|
|
|
|
|
|
|
rest_router = routers.DefaultRouter()
|
2015-10-19 13:02:37 +00:00
|
|
|
rest_router.register(r'ducks', views.DuckViewSet)
|
2014-12-23 08:56:04 +00:00
|
|
|
|
2015-10-19 13:02:37 +00:00
|
|
|
urlpatterns = rest_router.urls
|