have to use $http instead of $resource because of stripping the trailing slashes in $resource, and older angular version in linesman-angular-template