| Total Complexity | 0 | 
| Complexity/F | 0 | 
| Lines of Code | 20 | 
| Function Count | 0 | 
| Duplicated Lines | 0 | 
| Ratio | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | /**  | 
            ||
| 7 | const express = require('express'); | 
            ||
| 8 | const bodyParser = require('body-parser'); | 
            ||
| 9 | |||
| 10 | const cors = require('./middlewares/cors'); | 
            ||
| 11 | const xPoweredBy = require('./middlewares/xPoweredBy'); | 
            ||
| 12 | const routes = require('./routes/index'); | 
            ||
| 13 | |||
| 14 | // Init app.  | 
            ||
| 15 | const app = express();  | 
            ||
| 16 | // Configure app.  | 
            ||
| 17 | app.use(express.static('./src/public')); | 
            ||
| 18 | app.set('views', './src/views'); | 
            ||
| 19 | app.set('view engine', 'pug'); | 
            ||
| 20 | app.use(bodyParser.json());  | 
            ||
| 21 | app.use(bodyParser.urlencoded({ extended: true })); | 
            ||
| 22 | app.use(cors);  | 
            ||
| 23 | app.use(xPoweredBy);  | 
            ||
| 24 | app.use('/', routes); | 
            ||
| 25 | |||
| 26 | module.exports = app;  | 
            ||
| 27 |