Skip to content

Commit

Permalink
Speaker added.
Browse files Browse the repository at this point in the history
  • Loading branch information
RobSpectre committed Jan 13, 2012
1 parent 20e2ef6 commit 5f7a77c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ def speaker():
token = capability.generate()
return flask.render_template('client.html', token=token)

@app.route('/tunes', methods=['GET', 'POST'])
def tunes():
response = twiml.Response()
response.play('http://demo.brooklynhacker.com/music/ramones.mp3')
return str(response)

if __name__ == "__main__":
port = int(os.environ.get('PORT', 5000))
app.debug = True
Expand Down

0 comments on commit 5f7a77c

Please sign in to comment.