From cadece357b9589a496f016b06a1092279f592dd3 Mon Sep 17 00:00:00 2001 From: Nathan Woodburn Date: Sun, 18 Feb 2024 12:51:59 +1100 Subject: [PATCH] fix: Return minetype json --- server.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server.py b/server.py index 9a18a9c..d8d4fb3 100644 --- a/server.py +++ b/server.py @@ -19,6 +19,9 @@ app.after_request(add_custom_header) #Assets routes @app.route('/assets/') def send_report(path): + if path.endswith('.json'): + return send_from_directory('templates/assets', path, mimetype='application/json') + return send_from_directory('templates/assets', path)