glad
Version:
A robust Node Js API framework.
15 lines (11 loc) • 353 B
JavaScript
/*
It is advised that you do not use the body-parser here. Instead, set up defaults in
your congig.js file. You can always override it on the route when needed. This allows you to
have sane defaults, and make exceptions when needed.
*/
module.exports = [
(app) => {
app.app.set('view engine', 'pug');
return Promise.resolve();
}
];