create routes file creator

still needs some adjustments for GET requests
This commit is contained in:
2021-01-27 01:41:45 -07:00
parent 8e8c587c85
commit 87312fbc86
5 changed files with 107 additions and 12 deletions

View File

@ -62,7 +62,7 @@ function getFuncParams(view: EndpointDef): string[] {
});
return combinedList.map((param) => {
return param.param || '';
return param.param || ''; // both lists have already been filtered so the value should never return as an empty string
});
}
@ -80,5 +80,7 @@ interface ParamDef {
}
export {
createServiceFunc
createServiceFunc,
getFuncParams,
buildServiceFunctionName
}