Merge pull request #10655 from AminovE99/feat/json_render

feat: Add json as a non-static format
This commit is contained in:
mergify[bot] 2020-06-11 16:56:06 +00:00 committed by GitHub
commit f70024e4b1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -94,7 +94,7 @@ def is_static_file(path):
if ('.' not in path):
return False
extn = path.rsplit('.', 1)[-1]
if extn in ('html', 'md', 'js', 'xml', 'css', 'txt', 'py'):
if extn in ('html', 'md', 'js', 'xml', 'css', 'txt', 'py', 'json'):
return False
for app in frappe.get_installed_apps():