fix: Return minetype json
All checks were successful
Build Docker / Build Image (push) Successful in 30s
All checks were successful
Build Docker / Build Image (push) Successful in 30s
This commit is contained in:
parent
da42f35ff0
commit
cadece357b
@ -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)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user