Skip to content

Instantly share code, notes, and snippets.

@whtswrng
Created November 7, 2018 14:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save whtswrng/2eb06663d45dcf95de54a89a208faa0c to your computer and use it in GitHub Desktop.
Save whtswrng/2eb06663d45dcf95de54a89a208faa0c to your computer and use it in GitHub Desktop.
const response = await requestPromise.post({
uri: `${API_BASE_URL}/api/new/cool/auth?${req.body.formQuery}&some="garbage"`,
body: {somethingNew: req.body.newStaff, username: req.body.username},
json: true,
resolveWithFullResponse: true,
simple: false,
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment