Skip to content
Browse files

Set the renderer class for the api_root view.

  • Loading branch information...
1 parent 55a0079 commit 2f89a3aad19bd9de5b38abcfb00bd39646e131d7 @markotibold markotibold committed with markotibold Nov 20, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 fiber/rest_api/views.py
View
3 fiber/rest_api/views.py
@@ -2,7 +2,7 @@
from rest_framework import generics
from rest_framework import renderers
-from rest_framework.decorators import api_view
+from rest_framework.decorators import api_view, renderer_classes
from rest_framework.response import Response
from rest_framework.reverse import reverse
from rest_framework import views
@@ -194,6 +194,7 @@ class ImageDetail(generics.RetrieveUpdateDestroyAPIView):
@api_view(('GET',))
+@renderer_classes(API_RENDERERS)
def api_root(request, format='None'):
"""
This is the entry point for the API.

0 comments on commit 2f89a3a

Please sign in to comment.
Something went wrong with that request. Please try again.