node js set __dirnamepublic code example
Example 1: app.use public
app.use(express.static('public'))
app.use(express.static('files'))
Example 2: app.use public
express.static(root, [options])
app.use(express.static('public'))
app.use(express.static('files'))
express.static(root, [options])