ryentzer (2) [Avatar] Offline
The figure shows: fs.readFile(`views${req.url}.html`... when it should be: fs.readFile(`views${req.url}`...
TheWexler (62) [Avatar] Offline
Thanks for pointing this out. There is an inconsistency, and I defer to your solution of `views${req.url}`, leaving off the trailing `.html`. This error came about as I debated whether the URL path should be `/index` or `/index.html`. I'll make the change for the next release. Thank you.
ryentzer (2) [Avatar] Offline
No problem at all. Thanks for the response. I've enjoyed the book so far although I'm hung up on the next section. I don't think it's the book, more-so my lack of JS foo.