Fix: HTTP handling was broken after updating libs.

This commit is contained in:
baldo 2016-06-07 14:40:05 +02:00
parent 03083b819b
commit c3d527f2bc
5 changed files with 14 additions and 13 deletions
app/scripts/controllers

View file

@ -16,9 +16,9 @@ angular.module('ffffng')
$scope.save = function (node) {
return NodeService.createNode(node)
.success(function (response) {
$scope.node = response.node;
$scope.token = response.token;
.then(function (response) {
$scope.node = response.data.node;
$scope.token = response.data.token;
$scope.saved = true;
});
};