Skip to content
/ ajax Public

A small library that handles simple crud actions

License

Notifications You must be signed in to change notification settings

jbelmont/ajax

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A small library that handles simple crud actions

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published