Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

static folder express

// dependencies
const path = require('path');

// set static folder
app.set(express.static(path.join(__dirname, 'public')));
Source by expressjs.com #
 
PREVIOUS NEXT
Tagged: #static #folder #express
ADD COMMENT
Topic
Name
5+1 =