MCPcopy Create free account
hub / github.com/decaporg/decap-cms / urlFor

Method urlFor

packages/decap-cms-backend-github/src/API.ts:337–348  ·  view source on GitHub ↗
(path: string, options: Options)

Source from the content-addressed store, hash-verified

335 }
336
337 urlFor(path: string, options: Options) {
338 const params = [];
339 if (options.params) {
340 for (const key in options.params) {
341 params.push(`${key}=${encodeURIComponent(options.params[key] as string)}`);
342 }
343 }
344 if (params.length) {
345 path += `?${params.join('&')}`;
346 }
347 return this.apiRoot + path;
348 }
349
350 parseResponse(response: Response) {
351 const contentType = response.headers.get('Content-Type');

Callers 3

requestMethod · 0.95
requestAllPagesMethod · 0.95
getIssueWithETagMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected