For sake of completion, I believe $http will 'short circuit' within your folder structure, simply grabbing the resource where you point it to do so and is accessible within the project, whereas $resource is geared towards communicating with an external source, often an external RESTful api. In applications where I implement this, I often define a variable where my various $resource definitions can access it, as you'll see in my defined variable API
It also appears in this case that you are passing 1 as some sort of id.
var API = 'http://localhost\\:#####/api/';
editor.factory('Provider', function ($resource) {
return $resource(API + 'test/:id', { id: '@id' }, { });
});
Then to implement
function ctrl($scope, Provider){
var myVarToPass = 1;
Provider.get({ id: myVarToPass }, function (result) {
//single call here as soon as controller loads
});
}