aboutsummaryrefslogtreecommitdiffstats
path: root/api/urls.py
diff options
context:
space:
mode:
Diffstat (limited to 'api/urls.py')
-rw-r--r--api/urls.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/api/urls.py b/api/urls.py
new file mode 100644
index 00000000..c1fa70d5
--- /dev/null
+++ b/api/urls.py
@@ -0,0 +1,11 @@
+from rest_framework.routers import SimpleRouter
+
+from .viewsets import SnakeNameViewSet
+
+
+# http://www.django-rest-framework.org/api-guide/routers/#simplerouter
+router = SimpleRouter(trailing_slash=False)
+router.register(r'snake-names', SnakeNameViewSet)
+
+app_name = 'api'
+urlpatterns = router.urls