express Handling static files Multiple Directories Example


Example

// Set up Express
var express = require('express');
var app = express();

// Serve static assets from both 'public' and 'files' directory
app.use(express.static('public');
app.use(express.static('files');

// Start Express server
app.listen(3030);