RickWong/fetch-plus

createClient(url) needs to map CRUD functions

ngduc opened this issue · 1 comments

ngduc commented

At this moment, createClient only maps BREAD functions like:

endpoint.request = request.bind(null, endpoint);
        endpoint.browse = browse.bind(null, endpoint);
        endpoint.read = read.bind(null, endpoint);
        endpoint.edit = edit.bind(null, endpoint);
        endpoint.replace = replace.bind(null, endpoint);
        endpoint.add = add.bind(null, endpoint);
        endpoint.destroy = destroy.bind(null, endpoint);

We also need to map CRUD functions right?

ngduc commented

Oops, this was fixed in the latest version. Closing this. Thanks.