All
Extending Our NodeJS static + Dynamic Server
Here, we would be extending / simplifying our server that we had made in our last post here.
Objectives –
- We had a static URL handler which was invoked when URL pattern had /static/. It made the design very specific and not generic.
- Need to make sure that in case there is no URL pattern handler for a given URL, a file for same name must be looked. If there is no such file, just raise 404 error.