Convert from $resource to $http. Major changes (now working!) to server.js.