js/controllers/robot_ctrl.js in robeaux-0.1.1 vs js/controllers/robot_ctrl.js in robeaux-0.2.0

- old
+ new

@@ -1,7 +1,7 @@ var RobotCtrl = function RobotCtrl($scope, $http, $routeParams) { - $http.get("/robots/" + $routeParams.robot).success(function(data) { - $scope.robot = data; + $http.get("/api/robots/" + $routeParams.robot).success(function(data) { + $scope.robot = data.robot; $scope.robot.params = [ { name: '', value: '', type: 'string' } ]; $scope.robot.results = []; });