geoow-ajax

1.0.0 • Public • Published

Geoow Ajax

Ajax Service for JSON requests and responses

Methods

Ajax.get (url)

Ajax.get('/unicorns')
    .then(data => ...)
    .catch(reason => ...);

Ajax.post (url, data)

Ajax.post('/unicorns/create', unicorn)
    .then(data => ...)
    .catch(reason => ...);

Ajax.method (type, url, data)

Ajax.method('delete', `/unicorns/${unicornId}`, {})
    .then(data => ...)
    .catch(reason => ...);

License

GPL-3.0

Readme

Keywords

Package Sidebar

Install

npm i geoow-ajax

Weekly Downloads

1

Version

1.0.0

License

GPL-3.0

Last publish

Collaborators

  • dejakob