function entryPoint(staticHandler, file) {
  if (!file) return function(req, res, next) { next(); };

  return function(req, res, next) {
    req.url = "/" + file;
    staticHandler(req, res, next);
  };
}
/**
 * Rewrite request URL and pass it back to the static handler.
 * @param staticHandler {function} Next handler
 * @param file {string} Path to the entry point file
 */
Rewrite request URL and pass it back to the static handler.
@param staticHandler {function} Next handler
@param file {string} Path to the entry point file
Rewrite request URL and pass it back to the static handler . @param staticHandler { function } Next handler @param file { string } Path to the entry point file
function entryPoint(staticHandler, file) {
  if (!file) return function(req, res, next) { next(); };
  return function(req, res, next) {
    req.url = "/" + file;
    staticHandler(req, res, next);
  };
}
function entryPoint ( staticHandler , file ) { if ( ! file ) return function ( req , res , next ) { next ( ) ; } ; return function ( req , res , next ) { req . url = "/" + file ; staticHandler ( req , res , next ) ; } ; }
Rewrite request URL and pass it back to the static handler.
Rewrite request URL and pass it back to the static handler .