basic wiring up of actions to sinatra api calls