Пример #1
0
def ajax_bisect_call(doc_id=None):
    if validate_csrf(request.headers.get(CSRF_TOKEN_H, None)):
        return backend.ajax_bisect(request,
                                   doc_id,
                                   app_conf_get("BISECT_API_ENDPOINT"),
                                   timeout=60 * 60 * 4)
    else:
        abort(403)
Пример #2
0
def ajax_bisect_call(doc_id=None):
    if validate_csrf(request.headers.get(CSRF_TOKEN_H, None)):
        return backend.ajax_bisect(
            request,
            doc_id,
            app_conf_get("BISECT_API_ENDPOINT"),
            timeout=60 * 60 * 4
        )
    else:
        abort(403)