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')));
 
PREVIOUS NEXT
Tagged: #static #folder #express
ADD COMMENT
Topic
Name
3+2 =