feat: add ci cd files dont edit those files

This commit is contained in:
mahyargdz
2024-10-21 10:22:26 +03:30
commit fb5b440d42
321 changed files with 188273 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
const portals = require('../plugins/portals');
const {_sr} = require('../plugins/serverResponses');
const {res404, res500, hasWhiteSpaces, isLatinCharactersWithSymbol, generateRandomDigits} = require('../plugins/controllersHelperFunctions');
/** @todo add show in footer */
/////////////////////////////////////////////////////////////////////// admin
module.exports.getAll = [
async (req, res) => {
try {
var result = portals.filter((item) => req.user.portals.includes(item.value));
return res.json(result);
} catch (error) {
return res500(res , error.message);
}
}
]