1.1.1 • Published 7 years ago

ajaxmicro v1.1.1

Weekly downloads
4
License
MIT
Repository
github
Last release
7 years ago

Build Status Coverage Status

ajax

A small library that handles simple crud actions

Simply call http method in the library

The http function takes 3 parameters:

  • type is the HTTP verb to use ('PUT', 'POST', 'GET', 'DELETE')
  • route is the route to the endpoint
  • body is the body of the request if there is one

Here is a sample call to http function

const ajax = require('ajax').http

return ajax(
  type: 'GET',
  route: '/api/v1/someapi',
  body: {}
)

The call to ajax will return a promise

1.1.1

7 years ago

1.1.0

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago