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 7, 2017
1 parent d10b531 commit f1bbf87
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 @@ -21,7 +21,7 @@

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'))
url(r'^candidates/(?P<candidate_id>\d+)/dismiss$', candidate_dismiss, name='candidate-dismiss'),
url(r'^candidates/(?P<candidate_id>\d+)/mark$', candidate_mark, name='candidate-mark'),
Expand Down
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 django.http import JsonResponse
from rest_framework import viewsets
Expand Down Expand Up @@ -37,8 +38,9 @@ class ImageAvailableApiView(APIView):
def get(self, request):
"""
Return a list of files and folders in dataset
TODO implement directory retrieval method
"""
pass
return Response([])


def candidate_mark(request, candidate_id):
Expand Down

0 comments on commit f1bbf87

Please sign in to comment.