Answers for "serving static audio files with flask in react"

1

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)
Posted by: Guest on March-07-2021

Code answers related to "serving static audio files with flask in react"

Python Answers by Framework

Browse Popular Code Answers by Language