Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to combine folder for render in express js

const staticPath = path.join(__dirname, '../public');  // 2nd parameter is folder path u want to combine

app.use(express.static(staticPath));
 
PREVIOUS NEXT
Tagged: #combine #folder #render #express #js
ADD COMMENT
Topic
Name
8+3 =