UNPKG

mysql-restful

Version:
11 lines (9 loc) 292 B
function gms(hobj,req,auth,next){ headers = {'Content-Type': "application/json; charset=utf-8"}; if (auth) {headers.Authorization = auth}; req.headers = headers; hobj(req).then(function(response){ return next(false,response); }, function (x) {return next(x)} ); };