express.static in nodejs code example
Example 1: express static
app.use(express.static('public'));
Example 2: express serve static
app.use('/static', express.static(__dirname + '/public'));
app.use(express.static('public'));
app.use('/static', express.static(__dirname + '/public'));