FCC challenge serve an HTML File not working

Tell us what’s happening:

I use the following code but it is not working. The screen said"ENOENT: no such file or directory, stat ‘/views/index.html’" How to make it work? Thanks


Your code so far

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36.

Challenge: Serve an HTML File

Link to the challenge:

app.get('/', (req, res) => {

What is response in your code? I can’t see it defined anywhere :wink:

1 Like

lol thanks xD
silly me lmao xD