Let’s say you have a can-connect like: (or a supermap)
var todoConnection = can.connect(["data-url"],{
url: {
getData: "GET /todos/{id}?prop={val}",
}
});
todosConnection.getData({id: 5, prop:'abc'});
How can I wire up the fixture to query the store based on prop?
const store = fixture.store([{id:5, prop:'abc',...}];
fixture({
'GET /signs/get/{id}?prop={val}': store.findOne,
});
Do I need to overwrite store.findOne? Or is there a better way to do it?