UNPKG

passkit-webservice-toolkit

Version:

Integrate Apple Wallet Service with ease

19 lines 552 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.createEndpointDefinition = createEndpointDefinition; function createEndpointDefinition(signature) { const [method, path] = signature.split("\x20"); const params = path .split("/") .filter((section) => section.startsWith(":")) .map((param) => param.slice(1)); return { method, path, params, toString() { return signature; }, }; } //# sourceMappingURL=endpointDefinition.js.map