nodejs static img from public code example
Example 1: nodejs express server img src
<img src="/logo.jpg" />
Example 2: how to use static file node js
app.use(express.static('public'))
app.use(express.static('files'))
<img src="/logo.jpg" />
app.use(express.static('public'))
app.use(express.static('files'))