feat: Adding register completion and private users endpoint
This commit is contained in:
47
src/apps/private/companies/services.js
Normal file
47
src/apps/private/companies/services.js
Normal file
@@ -0,0 +1,47 @@
|
||||
"use strict";
|
||||
const { ROOT_PATH, MODELS_PATH } = process.env;
|
||||
const { getModel } = require( `${ROOT_PATH}/${MODELS_PATH}` );
|
||||
const usersModel = getModel('users');
|
||||
// const companiesModel = getModel('companies');
|
||||
// const branchesModel = getModel('branches');
|
||||
// const vehiclesModel = getModel('vehicles');
|
||||
// const loadsModel = getModel('loads');
|
||||
// const productCategoriesModel = getModel('product_categories');
|
||||
|
||||
async function getOwnCompany( req , res ) {
|
||||
|
||||
}
|
||||
|
||||
async function postOwnCompany( req , res ) {
|
||||
|
||||
}
|
||||
|
||||
async function patchOwnCompany( req , res ) {
|
||||
|
||||
}
|
||||
|
||||
async function getCompanyById( req , res ) {
|
||||
|
||||
}
|
||||
|
||||
async function getListShippers( req , res ) {
|
||||
|
||||
}
|
||||
|
||||
async function getListCarriers( req , res ) {
|
||||
|
||||
}
|
||||
|
||||
async function getUserLists( req , res ) {
|
||||
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
getOwnCompany,
|
||||
postOwnCompany,
|
||||
patchOwnCompany,
|
||||
getCompanyById,
|
||||
getListShippers,
|
||||
getListCarriers,
|
||||
getUserLists
|
||||
};
|
||||
Reference in New Issue
Block a user