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");
|
2023-05-12 14:54:58 +00:00
|
|
|
const updateUser = require("./users/update-user");
|
2023-05-06 11:14:09 +00:00
|
|
|
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
|
|
|
|
|
|
|
/** ****************************************************************************** */
|
|
|
|
/** ****************************************************************************** */
|
|
|
|
/** ****************************************************************************** */
|
|
|
|
/** ****************************************************************************** */
|
|
|
|
/** ****************************************************************************** */
|
|
|
|
/** ****************************************************************************** */
|
|
|
|
|
|
|
|
/**
|
|
|
|
* ==============================================================================
|
2023-05-18 08:22:05 +00:00
|
|
|
* User Functions Object
|
2023-05-03 06:16:29 +00:00
|
|
|
* ==============================================================================
|
2023-05-18 11:08:14 +00:00
|
|
|
* @type {{
|
|
|
|
* createUser: Function
|
|
|
|
* loginUser: Function
|
|
|
|
* logoutUser: Function
|
|
|
|
* userAuth: Function
|
|
|
|
* updateUser: Function
|
|
|
|
* }}
|
2023-05-18 08:22:05 +00:00
|
|
|
*/
|
|
|
|
const user = {
|
|
|
|
createUser: createUser,
|
|
|
|
loginUser: loginUser,
|
|
|
|
logoutUser: logoutUser,
|
|
|
|
userAuth: userAuth,
|
|
|
|
updateUser: updateUser,
|
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
|
|
* ==============================================================================
|
|
|
|
* Media Functions Object
|
|
|
|
* ==============================================================================
|
2023-05-18 11:08:14 +00:00
|
|
|
* @type {{
|
|
|
|
* uploadImage: Function
|
|
|
|
* }}
|
2023-05-18 08:22:05 +00:00
|
|
|
*/
|
|
|
|
const media = {
|
|
|
|
uploadImage: uploadImage,
|
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
|
|
* ==============================================================================
|
|
|
|
* Main Export
|
|
|
|
* ==============================================================================
|
2023-05-18 11:08:14 +00:00
|
|
|
* @type {{
|
|
|
|
* get: Function,
|
|
|
|
* post: Function,
|
|
|
|
* media: {
|
|
|
|
* uploadImage: Function
|
|
|
|
* },
|
|
|
|
* user: {
|
|
|
|
* createUser: Function
|
|
|
|
* loginUser: Function
|
|
|
|
* logoutUser: Function
|
|
|
|
* userAuth: Function
|
|
|
|
* updateUser: Function
|
|
|
|
* },
|
|
|
|
* }}
|
|
|
|
* ==============================================================================
|
2023-05-03 06:16:29 +00:00
|
|
|
*/
|
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-18 08:22:05 +00:00
|
|
|
media: media,
|
|
|
|
user: user,
|
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
|
|
|
|
|
|
|
/** ********************************************** */
|
|
|
|
/** ********************************************** */
|
|
|
|
/** ********************************************** */
|