From bf08883f1556e4c618caef6a87acb591f96bff67 Mon Sep 17 00:00:00 2001 From: jamesgeorge007 Date: Sat, 11 Jan 2020 13:07:26 +0530 Subject: [PATCH] chore: method signatures for sendPostRequest method --- assets/js/oauth.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/assets/js/oauth.js b/assets/js/oauth.js index 022c33627..0c7a1a651 100644 --- a/assets/js/oauth.js +++ b/assets/js/oauth.js @@ -3,7 +3,15 @@ const redirectUri = `${window.location.origin}/`; ////////////////////////////////////////////////////////////////////// // GENERAL HELPER FUNCTIONS -// Make a POST request and parse the response as JSON +/** + * Makes a POST request and parses the response as JSON + * + * @param {String} url - The resource + * @param {Object} params - Configuration options + * @returns {Object} + */ + +// const sendPostRequest = async (url, params) => { const body = Object.keys(params) .map(key => `${key}=${params[key]}`)