datasquirel/index.js

46 lines
1.7 KiB
JavaScript
Raw Normal View History

2023-05-03 06:16:29 +00:00
/**
* ==============================================================================
* Imports
* ==============================================================================
*/
const get = require("./utils/get");
2023-05-03 06:53:10 +00:00
const post = require("./utils/post");
const uploadImage = require("./utils/upload-image");
2023-05-06 11:14:09 +00:00
const createUser = require("./users/add-user");
const loginUser = require("./users/login-user");
const logoutUser = require("./users/logout-user");
const userAuth = require("./users/user-auth");
2023-05-03 06:16:29 +00:00
/** ****************************************************************************** */
/** ****************************************************************************** */
/** ****************************************************************************** */
/** ****************************************************************************** */
/** ****************************************************************************** */
/** ****************************************************************************** */
/**
* ==============================================================================
* Main Function
* ==============================================================================
* @param {Object} mailObject - foundUser if any
*/
2023-05-03 06:25:12 +00:00
const datasquirel = {
2023-05-03 06:16:29 +00:00
get: get,
2023-05-03 06:53:10 +00:00
post: post,
2023-05-07 09:04:41 +00:00
media: {
uploadImage: uploadImage,
},
user: {
createUser: createUser,
loginUser: loginUser,
logoutUser: logoutUser,
userAuth: userAuth,
},
2023-05-03 06:16:29 +00:00
};
2023-05-03 06:25:12 +00:00
module.exports = datasquirel;
2023-05-03 06:16:29 +00:00
/** ********************************************** */
/** ********************************************** */
/** ********************************************** */