ajax
a clean Ajax handler, setting options for fetch(). Optionally log errors utilizing the responder & Debug features.
Json.ajax(endpoint, cb, options)
a clean Ajax handler, setting options for fetch(). Optionally log errors utilizing the responder & Debug features.
Parameters
-
endpoint
{String}
String URL to hit with the ajax request.
-
cb
{function()}
optional callback function
-
options
{Object}
override fetch options
Returns
{function()}
cb optional callback function