added api logic to routes
Merge branch 'master' of github.com:lisajwells/wdi_project_three