easy-mock-ng-service-loader
Version:
a easy way to sync request services from easy-mock.com
14 lines • 463 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
function EntityDecorator(options) {
return (target) => {
if (options.url[options.url.length - 1] === '/') {
const url = options.url.split('');
url.pop();
options.url = url.join('');
}
Object.assign(target.prototype, options);
};
}
exports.EntityDecorator = EntityDecorator;
//# sourceMappingURL=entity.decorator.js.map