Tell us what’s happening:
in this challenge i used this code that seem correct but it didn’t work.
please help me find the mistakes
let express = require('express');
let app = express();
app.use('/public', express.static(__dirname + "/public"));
app.get("/", (req, res) => {
res.sendFile(__dirname + "/views/index.html");
});
###Your project link(s)
solution: https://3000-freecodecam-boilerplate-42quuyddwqc.ws-eu117.gitpod.io
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36
Challenge Information:
Basic Node and Express - Serve Static Assets