Open kaitlynhova opened 7 years ago
We need to write a function an object with the values from a given URL QueryString.
Given this:
/preview?component={"id":"idComp1","handedness":"l","c1":"2.0001", "C2": "18" }&component={"id":"idComp2","HandEdness":":L", "c1":"12.0"}&component={"id":"idComp4","c1":"999999"}&component={"NO_ID_FIELD":"idComp4","c1":"12"}
We need to return an array of objects
[ { id: "idcomp1", handedness: "l", c1: "2.0", c2: "18.0" }, { id: "idcomp2", handedness: "l", c1: "12.0" }, { id: "idcomp3", c1: "18.0" }, ]
So we have to:
For reference: https://github.com/machinabio/limbforge-service/blob/master/imports/routes/api/preview.js#L37
We need to write a function an object with the values from a given URL QueryString.
Given this:
We need to return an array of objects
So we have to: