Commit 414a78a3 authored by Georgios D. Tsoukalas's avatar Georgios D. Tsoukalas
Browse files

csrf_excempt quotaholder view

parent c5e14550
......@@ -41,6 +41,12 @@ from .callpoint import API_Callpoint
import json
from traceback import format_exc
from django.views.decorators.csrf import csrf_exempt
except ImportError:
def csrf_exempt(func):
return func
def _get_body(request):
body = request.raw_post_data
if body is None:
......@@ -50,6 +56,7 @@ def _get_body(request):
callpoints = {('quotaholder', 'v'): API_Callpoint()}
def view(request, appname='quotaholder', version=None, callname=None):
if (appname, version) not in callpoints:
return HttpResponse(status=404)
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