When running yeoman server
I want to be able to create URL stubs to simulate backend responses.
Take for example the following controller:
angularApp.controller('AppuserListCtrl', function ($scope, $http) {
$http({method: 'GET', url: '/admin/appuser/rest/?accept=json'})
.success(function (data, status, headers, config) {
$scope.page = data;
})
.error(function (data, status, headers, config) {
$scope.error = data;
});
});
This controller depends on an ajax request to retrieve a json object to do any work.
Is there a way to stub those out with yeoman server
?