Answers for "serve images with express"

1

nodejs express server img src

<img src="/logo.jpg" />
Posted by: Guest on June-03-2020
1

app.use public

app.use(express.static('public'))
app.use(express.static('files'))
Posted by: Guest on April-02-2020
0

nodejs express server img src

app.use(express.static(__dirname + '/images'));
Posted by: Guest on June-03-2020

Browse Popular Code Answers by Language