expressworks
expressworks copied to clipboard
STATIC | missed path and passed in the verification
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]);