spee.ch/client/pages/index.js
2018-03-30 15:27:28 -07:00

12 lines
319 B
JavaScript

const Path = require('path');
const { getSubDirectoryNames } = require('tools/getFolderNames.js');
const thisFolder = Path.resolve(__dirname, 'client/pages/');
let modules = {};
getSubDirectoryNames(thisFolder)
.forEach((name) => {
modules[name] = require(`./${name}`).default;
});
module.exports = modules;