why can I only serve static files code example
Example 1: nodejs express server img src
<img src="/logo.jpg" />
Example 2: nodejs express server img src
app.use(express.static(__dirname + '/images'));
<img src="/logo.jpg" />
app.use(express.static(__dirname + '/images'));