all files / commanders/web/ php_cgi_middleware.js

66.67% Statements 2/3
100% Branches 0/0
0% Functions 0/1
66.67% Lines 2/3
1 2 3 4 5 6 7 8 9 10 11 12 13                     
 
 
var phpcgi = require('node-phpcgi');
 
module.exports = function(root) {
  return phpcgi({
    documentRoot: root,
    entryPoint: '/index.php',
    includePath: '/',
    handler: 'php-cgi'
  })
}