Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

serve public folder express without file extension

app.use(express.static(path.join(__dirname, 'public'),{index:false,extensions:['html']}));
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #serve #public #folder #express #file #extension
ADD COMMENT
Topic
Name
2+3 =