@enonic/mock-xp
Version:
Mock Enonic XP API JavaScript Library
22 lines (21 loc) • 634 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Asset = void 0;
var tslib_1 = require("tslib");
var Resource_1 = require("./Resource");
var Asset = (function (_super) {
tslib_1.__extends(Asset, _super);
function Asset(_a) {
var app = _a.app, path = _a.path;
return _super.call(this, {
app: app,
path: Asset.prefixPath(path),
}) || this;
}
Asset.prefixPath = function (path) {
return "".concat(Asset.path, "/").concat(path);
};
Asset.path = '/assets';
return Asset;
}(Resource_1.Resource));
exports.Asset = Asset;