Code coverage report for server/app/configure/index.js

Statements: 100% (9 / 9)      Branches: 100% (0 / 0)      Functions: 100% (2 / 2)      Lines: 100% (9 / 9)      Ignored: none     

All files » server/app/configure/ » index.js
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24  1         2   2 8     2 2 2       2   2      
'use strict';
module.exports = function (app, db) {
 
    // setValue and getValue are merely alias
    // for app.set and app.get used in the less
    // common way of setting application variables.
    app.setValue = app.set.bind(app);
 
    app.getValue = function (path) {
        return app.get(path);
    };
 
    require('./app-variables')(app);
    require('./static-middleware')(app);
    require('./parsing-middleware')(app);
 
    // Logging middleware, set as application
    // variable inside of server/app/configure/app-variables.js
    app.use(app.getValue('log'));
 
    require('./authentication')(app, db);
 
};