This commit is contained in:
Tben
2023-07-07 20:13:13 +01:00
parent b43eb1f990
commit cdcb3069c3
17 changed files with 82 additions and 34 deletions
+4 -2
View File
@@ -31,7 +31,7 @@ const https = require("https");
*
* @returns { Promise<GetReturn> } - Return Object
*/
module.exports = async function ({ key, db, query }) {
async function get({ key, db, query }) {
/**
* Make https request
*
@@ -83,8 +83,10 @@ module.exports = async function ({ key, db, query }) {
/** ********************************************** */
return httpResponse;
};
}
/** ********************************************** */
/** ********************************************** */
/** ********************************************** */
module.exports = get;
+4 -2
View File
@@ -42,7 +42,7 @@ const https = require("https");
*
* @returns { Promise<PostReturn> } - Return Object
*/
module.exports = async function ({ key, query, database }) {
async function post({ key, query, database }) {
/**
* Make https request
*
@@ -133,8 +133,10 @@ module.exports = async function ({ key, query, database }) {
/** ********************************************** */
return httpResponse;
};
}
/** ********************************************** */
/** ********************************************** */
/** ********************************************** */
module.exports = post;
+4 -2
View File
@@ -39,7 +39,7 @@ const https = require("https");
*
* @returns { Promise<FunctionReturn> } - Return Object
*/
module.exports = async function ({ key, payload }) {
async function uploadImage({ key, payload }) {
/**
* Make https request
*
@@ -92,8 +92,10 @@ module.exports = async function ({ key, payload }) {
/** ********************************************** */
return httpResponse;
};
}
/** ********************************************** */
/** ********************************************** */
/** ********************************************** */
module.exports = uploadImage;