Answers for "express use public"

4

express serve public

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
1

app.use public

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

Browse Popular Code Answers by Language