Commit d73acef4 authored by Nikos Pappas's avatar Nikos Pappas
Browse files

4rd

parent 9da543ec
......@@ -2,7 +2,7 @@ from django.contrib import admin
from rest_framework import viewsets
from rest_framework import status
from rest_framework.response import Response
from rest_framework.decorators import api_view
from rest_framework.decorators import api_view, schema
from rest_framework.permissions import IsAuthenticatedOrReadOnly, DjangoModelPermissionsOrAnonReadOnly
# App specific imports
......@@ -23,7 +23,8 @@ class EvidenceViewSet(viewsets.ModelViewSet):
permission_classes = [IsAuthenticatedOrReadOnly] # Only allow authenticated users to POST
@api_view(('GET',))
@api_view(['GET'])
@schema(None)
def get_evidences_from_emd(request):
lang = request.GET.get('lang', 'gr') # set language for emd
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment