text: const express = require('express');
  const path = require('path');
  const handlebars = require('express-handlebars');
  const bodyParser = require('body-parser');
  
  module.exports = app => {
    app.use(bodyParser.urlencoded({ extended: false }));
    app.use(express.static(path.resolve(__basedir, 'static')));
    app.engine(
      '.hbs',
      handlebars({
        extname: '.hbs',
        defaultLayout: false,
        partialsDir: path.resolve(__basedir, 'views', 'partials')
      })
    );
    app.set('views', path.resolve(__basedir, 'views'));
  };
  