MCPcopy
hub / github.com/YMFE/yapi / insertParams

Function insertParams

server/utils/commons.js:236–243  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

234
235exports.handleVarPath = (pathname, params) => {
236 function insertParams(name) {
237 if (!_.find(params, { name: name })) {
238 params.push({
239 name: name,
240 desc: ''
241 });
242 }
243 }
244
245 if (!pathname) return;
246 if (pathname.indexOf(':') !== -1) {

Callers 1

commons.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected