Skip to content

Version 0.6.5

Compare
Choose a tag to compare
@lexich lexich released this 12 Nov 06:41
· 267 commits to master since this release

Add async helpers #17

{  
  logger: "/api/logger",
  test: {
    url: "/api/test/:name/:id",
    helpers: {
      // complicated async logic
      async() {
        const {dispatch} = this;
        return (cb)=> {
          dispatch(rest.actions.logger((err)=> {
            const args = [{id: 1, name: "admin"}];
            cb(err, args);
          }));
        };
      }
    }
  }
}