|
|
@ -71,6 +71,7 @@ module.exports = () => { |
|
|
post: (url, body) => postRequest(server,url,body), |
|
|
post: (url, body) => postRequest(server,url,body), |
|
|
patch: (url, body) => patchRequest(server,url,body), |
|
|
patch: (url, body) => patchRequest(server,url,body), |
|
|
get: (url) => getRequest(server, url), |
|
|
get: (url) => getRequest(server, url), |
|
|
|
|
|
delete: (url) => deleteRequest(server, url), |
|
|
credentials: { |
|
|
credentials: { |
|
|
masterOwner: { |
|
|
masterOwner: { |
|
|
username: masterOwnerName, |
|
|
username: masterOwnerName, |
|
|
@ -121,6 +122,12 @@ const postRequest = (server, url, body) => |
|
|
.send(body) |
|
|
.send(body) |
|
|
.set('Accept', 'application/json'); |
|
|
.set('Accept', 'application/json'); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const deleteRequest = (server, url) => |
|
|
|
|
|
request(server) |
|
|
|
|
|
.delete(url) |
|
|
|
|
|
.set('Accept', 'application/json'); |
|
|
|
|
|
|
|
|
const getRequest = (server, url) => |
|
|
const getRequest = (server, url) => |
|
|
request(server) |
|
|
request(server) |
|
|
.get(url) |
|
|
.get(url) |
|
|
|