Lesson 6. Writing better routes and serving external files
This lesson covers
- Serving entire HTML files by using the fs module
- Serving static assets
- Creating a router module
It’s time to build a basic recipe website. The site should have three static pages with some images and styling. You quickly realize that all the applications you’ve built ...