Skip to content

Instantly share code, notes, and snippets.

@jacobmischka
Created April 11, 2017 02:08
Show Gist options
  • Save jacobmischka/79bcd6dc68b8bc7c0af5c68315918500 to your computer and use it in GitHub Desktop.
Save jacobmischka/79bcd6dc68b8bc7c0af5c68315918500 to your computer and use it in GitHub Desktop.
@app.route('/manifest/:id', methods=['POST'])
def manifest():
user = get_user_from_db_by_id(id)
return send_file('/tmp/dash/' + user.manifest_filename + '.mpd', filename=(str(id) + '.mpd'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment