Answers for "app.use(express.static(path.join(__dirname, '/client/public')))"

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

Code answers related to "app.use(express.static(path.join(__dirname, '/client/public')))"

Browse Popular Code Answers by Language