Can't view site, getting Cannot GET / [Solved]

Hey, I’m trying to get my site to display, but when I go to: , I get the message “Cannot GET /”. There are no issues in console. I’m expecting that when I go to that link I see the index.html, but I don’t.

Hey @MrShawn,

In your server.js, you need to add the following lines of code:

app.get("/", function(request, response) {
  response.sendFile(__dirname + "/views/index.html");
1 Like