serving static audio files with flask in react code example
Example: serving static audio files with flask in react
<audio controls src="/files/audio.wav">
</audio>
@app.route('/files/<path:path>')
def send_file(path):
return send_from_directory('files', path)