Ruby

Create Routes

We will add three HTTP routes to the server.rb file, two GET routes and one POST route.

The first GET route will start a new phone call after it is accessed. The second GET route will welcome the recipient with a greeting. The POST route will send the streaming audio instructions to the Voice API once the call has been answered: