1.0.5 • Published 2 years ago

baller_req_res v1.0.5

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

// Install the module and change the url and id accordingly. // we need the id in the update route. // update that. //

<script>
  $(() => {

     requires axios 
      req_res.getURL()
      req_res.getId() // returns user.id or false
      req_res.signup_login_response(response, route) // sets user 
      req_res.logout_response(route) // removes user
      req_res.handleResponse(response, callback) // executes data into callback
      // if the callback is undefined, it will simply return the data 
      await req_res.getAll(type, callback = undefined)
      await req_res.getOne(type, typeId, callback = undefined)
      await req_res.post(type, object, callback = undefined)
      await req_res.delete(type, typeId, callback = undefined) // returns id 
      await req_res.update(type, typeId, object, callback = undefined) // returns object
      await req_res.updateKeyValue(type, typeId, key, value, callback)
      await req_res.sort(type, sort, callback = undefined)
      await req_res.search(type, query, callback = undefined)
      await req_res.test()
  })
  </script>
1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago