Commit 96d6c3d7 authored by Pablo Panero's avatar Pablo Panero
Browse files

config: add json-patch loader config

parent 6a2c0cb1
......@@ -12,6 +12,7 @@ from __future__ import absolute_import, print_function
import ast
import copy
import os
from flask import request
from invenio_oauthclient.contrib import cern
from invenio_records_rest import config as irr_config
......@@ -96,7 +97,8 @@ RECORDS_REST_ENDPOINTS = dict(
'application/json': ('cern_search_rest_api.modules.cernsearch.loaders:'
'application/json-patch+json': lambda: request.get_json(force=True)
search_index=os.getenv('CERN_SEARCH_INSTANCE', 'cernsearch-test'),
Supports Markdown
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