let consolidate = require('consolidate');
let express = require('express');

module.exports = (options) => {
  let app = express()
    .set('views', options.paths.views)
    .set('view engine', 'hbs')
    .engine('hbs', consolidate.handlebars);

  app.use(require('cookie-parser')());
  app.use(require('body-parser').urlencoded({ extended: true }));
  app.use(require('express-session')({ secret: 'keyboard cat', resave: false, saveUninitialized: false }));
  app.use(require('connect-flash')());

  //Build global locals
  app.use(function (req, res, next) {
    res.locals.flash = {
      success: req.flash('success'),
      info: req.flash('info'),
      warn: req.flash('warn'),
      error: req.flash('error')
    };

    res.locals.user = req.user;
    next();
  });

  return app;
}
@@ -490,16 +490,65 @@
 sh')());
+%0A  app.use(express.static(options.paths.static));
 %0A%0A  //Bu

Add static handler