made changes recommended by Elliot, change sinatra route to be a get instead of a post