Skip to content
This repository has been archived by the owner on Feb 22, 2020. It is now read-only.

Commit

Permalink
empty dir list return
Browse files Browse the repository at this point in the history
  • Loading branch information
rahit committed Sep 6, 2017
1 parent 3510d64 commit 19f2841
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion interface/backend/api/urls.py
Expand Up @@ -19,6 +19,6 @@

urlpatterns = [
url(r'^', include(router.urls)),
url(r'^images/available$', ImageAvailableApiView.as_view()),
url(r'^images/available$', ImageAvailableApiView.as_view(), name='image-available'),
url(r'^api-auth/', include('rest_framework.urls', namespace='rest_framework'))
]
4 changes: 3 additions & 1 deletion interface/backend/api/views.py
Expand Up @@ -5,6 +5,7 @@
Nodule,
)
from rest_framework.views import APIView
from rest_framework.response import Response
from backend.images.models import ImageSeries
from rest_framework import viewsets

Expand Down Expand Up @@ -36,5 +37,6 @@ class ImageAvailableApiView(APIView):
def get(self, request):
"""
Return a list of files and folders in dataset
TODO implement directory retrieval method
"""
pass
return Response([])

0 comments on commit 19f2841

Please sign in to comment.