Code coverage report for server/app/configure/static-middleware.js

Statements: 100% (12 / 12)      Branches: 100% (0 / 0)      Functions: 100% (1 / 1)      Lines: 100% (12 / 12)      Ignored: none     

All files » server/app/configure/ » static-middleware.js
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20  1 1 1   1   2   2 2 2   2 2 2 2      
"use strict";
var path = require('path');
var express = require('express');
var favicon = require('serve-favicon');
 
module.exports = function (app) {
 
    var root = app.getValue('projectRoot');
 
    var npmPath = path.join(root, './node_modules');
    var publicPath = path.join(root, './public');
    var browserPath = path.join(root, './browser');
 
    app.use(favicon(app.getValue('faviconPath')));
    app.use(express.static(npmPath));
    app.use(express.static(publicPath));
    app.use(express.static(browserPath));
 
};