static folder express code example
Example 1: express public folder
app.use(express.static('public'))
app.use(express.static('files'))
Example 2: static folder express
// dependencies
const path = require('path');
// set static folder
app.set(express.static(path.join(__dirname, 'public')));