expressworks icon indicating copy to clipboard operation
expressworks copied to clipboard

STATIC | missed path and passed in the verification

Open fsramalho opened this issue 7 years ago • 0 comments

The issue is regarding the exercise STATIC. My code (below) passed in the verification, but I didn't insert var path = require('path'); the requirement of 'pass' although I used it following the suggestion in the Hint.

My Code

var express = require('express');
var app = express();

app.use(express.static(process.argv[3]||path.join(__dirname, 'public')));

app.listen(process.argv[2]);

fsramalho avatar Jul 07 '17 09:07 fsramalho