fix: Return minetype json
All checks were successful
Build Docker / Build Image (push) Successful in 30s

This commit is contained in:
Nathan Woodburn 2024-02-18 12:51:59 +11:00
parent da42f35ff0
commit cadece357b
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1

View File

@ -19,6 +19,9 @@ app.after_request(add_custom_header)
#Assets routes
@app.route('/assets/<path:path>')
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)