Answers for "express static serve"

1

app.use public

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

serve static files from express

const path = require('path')
app.use('/static', express.static(path.join(__dirname, 'public')))
Posted by: Guest on July-31-2021
-2

express static serve

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

Code answers related to "express static serve"

Code answers related to "Javascript"

Browse Popular Code Answers by Language