DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
serve static files from express
const path = require('path') app.use('/static', express.static(path.join(__dirname, 'public')))
Source by expressjs.com #
PREVIOUS
NEXT
Tagged:
#serve
#static
#files
#express
ADD COMMENT
Topic
COMMENT
Name
9+1 =
Submit