jec-sandcat
Version:
JEC Sandcat - The default RESTful web services framework for GlassCat applications.
14 lines (13 loc) • 470 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const jec_commons_1 = require("jec-commons");
class ResourcePathSolver {
constructor() { }
resolvePath(path, descriptor) {
const fixedPath = path.indexOf(jec_commons_1.UrlStringsEnum.SLASH) === 0 ?
path : jec_commons_1.UrlStringsEnum.SLASH + path;
descriptor.resourcePath = fixedPath;
}
}
exports.ResourcePathSolver = ResourcePathSolver;
;