Answers for "how do i serve a static file in node js sta"

1

access to static file nodejs

app.use(express.static(__dirname + '/public'));
<link rel="stylesheet" type="text/css" href="css/style.css" />
Posted by: Guest on May-14-2020
1

how to use static file node js

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

Code answers related to "how do i serve a static file in node js sta"

Browse Popular Code Answers by Language