diff --git a/api/views.py b/api/views.py index 46f8794..27fc56b 100644 --- a/api/views.py +++ b/api/views.py @@ -1,8 +1,6 @@ from django.contrib.auth import logout from django.contrib.auth.models import User from django.shortcuts import redirect -from django.utils.decorators import method_decorator -from django.views.decorators.csrf import csrf_exempt from django_filters.rest_framework import DjangoFilterBackend from rest_framework import generics, permissions, status, views, viewsets from rest_framework.decorators import action @@ -47,6 +45,7 @@ def get(self, request, format=None): "monitoringtubes": reverse( "api:gmw:monitoringtube-list", request=request, format=format ), + "version": "1", } return Response(data) @@ -138,7 +137,6 @@ def get(self, request, *args, **kwargs): """List of all Import Tasks.""" return self.list(request, *args, **kwargs) - @method_decorator(csrf_exempt) def post(self, request): """ Initialize an import task by posting a BRO object. @@ -227,7 +225,6 @@ def get(self, request, *args, **kwargs): """List of all Upload Tasks.""" return self.list(request, *args, **kwargs) - @method_decorator(csrf_exempt) def post(self, request): """ Initialize an upload task by posting the bro_domain, registration_type, request_type, and the sourcedocument_data