function bootstrapRoutes() { // Skip the app/routes/middlewares directory as it is meant to be // used and shared by routes as further middlewares and is not a // route by itself util.walk(appPath + '/server', 'route', 'middlewares', function(path) { require(path)(app, passport); }); }
function bootstrapSocketIo() { // Skip the app/routes/middlewares directory as it is meant to be // used and shared by routes as further middlewares and is not a // route by itself util.walk(appPath + '/server', 'socket', '', function(path) { require(path)(app.io); }); }