コード例 #1
0
ファイル: express.js プロジェクト: acalfo/greek-mean
 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);
     });
 }
コード例 #2
0
ファイル: server.js プロジェクト: ezekielriva/bus-locator
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);
        });
    }