Node.js - HTTP Module
You want to serve static files from two folders:
public at root and uploads under /files. Which code correctly sets this up?public at root and uploads under /files. Which code correctly sets this up?app.use(express.static('public')); serves files in 'public' at root URL.app.use('/files', express.static('uploads')); serves 'uploads' files under '/files' path.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions