I am learning
The diagonal or slash /
is automatically removed because ngResource
has a provider called $resourceProvider
that controls whether this diagonal should be included or not.
To disable this automatic change, simply change the stripTrailingSlashes
setting in some config
of your application.
(function(){
'use strict';
resourceConfig.$inject = ['$resourceProvider'];
function resourceConfig($resourceProvider){
$resourceProvider.defaults.stripTrailingSlashes = false;
}
angular.module('cmi')
.config(resourceConfig);
})();