diff --git a/oarepo_ui/resources/config.py b/oarepo_ui/resources/config.py index f3a6eb26..0078f76d 100644 --- a/oarepo_ui/resources/config.py +++ b/oarepo_ui/resources/config.py @@ -45,7 +45,10 @@ def get_template_folder(self): ) return str(tf) - response_handlers = {"text/html": None} + response_handlers = { + "text/html": None, + "application/json": None + } default_accept_mimetype = "text/html" # Request parsing diff --git a/setup.cfg b/setup.cfg index c2d979c4..3a4464ca 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = oarepo-ui -version = 5.2.23 +version = 5.2.24 description = UI module for invenio 3.5+ long_description = file: README.md long_description_content_type = text/markdown