serving static audio files with flask in react

Solutions on MaxInterview for serving static audio files with flask in react by the best coders in the world

showing results for - "serving static audio files with flask in react"
Grayson
28 Jan 2019
1<audio controls src="/files/audio.wav">
2</audio>  
3
4
5
6@app.route('/files/<path:path>')
7def send_file(path):
8    return send_from_directory('files', path)
9