Answers for "express static pages"

-3

express serve static

app.use('/static', express.static(__dirname + '/public'));
Posted by: Guest on April-26-2021
1

app.use public

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

express static serve

app.use(express.static('public'))
Posted by: Guest on January-22-2021

Browse Popular Code Answers by Language