Skip to content

Commit

Permalink
Merge pull request #251 from oarepo/miroslavsimek/be-345-create-a-for…
Browse files Browse the repository at this point in the history
…mconfig-generator-in-ui-resources

fix: Accepting application/json Accept header on config
  • Loading branch information
mirekys authored Nov 15, 2024
2 parents 3665318 + 95a74d6 commit 718f5a6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion oarepo_ui/resources/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 718f5a6

Please sign in to comment.