Answers for "express serve index.html file from public folder but no other files"

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 "express serve index.html file from public folder but no other files"

Browse Popular Code Answers by Language