Skip to content

Version 0.6.2

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

Validation option to endpoint config #15

{
  test: {
    url: "/api/test",
    validation: (data, cb) {
      // check data format
      let error;
      if (data instanceOf Array) {
        error = "Data must be array";
      }
      cb(error);
    }
  }
}