// app.configure = function configure(nconf, next) { // // Async method run on startup. // next(null); // }; // // app.requestStart = function requestStart(server) { // // Run before most express middleware has been registered. // }; // // app.requestBeforeRoute = function requestBeforeRoute(server) { // require('dustjs-linkedin').optimizers.format = function(ctx, node) { return node }; // // Run before any routes have been added. // }; // // app.requestAfterRoute = function requestAfterRoute(server) { // // Run after all routes have been added. // }; // // if (require.main === module) { // kraken.create(app).listen(function (err) { // if (err) { // console.error(err.stack); // } // }); // } // module.exports = app;
kraken.create(delegate).listen(function (err) { if (err) { console.error(err.stack); } });
configure: functionconfigure(nconf, next) { // Async method run on startup next(null); },
requestStart: functionrequestStart(server) { // Run before most express middleware has been registered },
requestBeforeRoute: functionrequestBeforeRoute(server) { // Run before any routes have been added require('dustjs-linkedin').optimizers.format = function(ctx, node) { return node }; },
requestAfterRoute: functionrequestAfterRoute(server) { // Run after all routes have been added } };