Answers for "public static expressjs"

4

express serve static files

app.use('/', express.static('public'));
Posted by: Guest on June-24-2021
1

public static expressjs

//please read the expressjs docs
//  https://expressjs.com/en/starter/static-files.html
Posted by: Guest on September-13-2021
-3

express serve static

app.use('/static', express.static(__dirname + '/public'));
Posted by: Guest on April-26-2021
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

Code answers related to "public static expressjs"

Code answers related to "Javascript"

Browse Popular Code Answers by Language