main.js 217 Bytes
const fs = require('fs');
const path = require('path');
const app = require('./server');

fs.readdirSync(path.resolve(__dirname, 'routes')).forEach((name) => {
    require(path.resolve(__dirname, 'routes', name));
});