Update controllers.js

updated api call