Answers for "serve images 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
2

use static with expres

app.use(express.static('directoryName'))
#store the files in the directory as if you were making a website without express
Posted by: Guest on August-12-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