Node.js - HTTP Module
You want to serve static files from the
public folder but under the URL path prefix /static. Which code correctly achieves this?public folder but under the URL path prefix /static. Which code correctly achieves this?app.use, then the static middleware.app.use('/static', express.static('public')). Others either misuse paths or methods.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions