I’m trying to serve some static file with a nicer url endpoints.
For example, /home will serve /public/home.html.
I can probably use res.sendfile() in the route config, but sendfile will not cache the file output in production mode so I am not too sure if this is a good solution.
How do I set routes to act like an alias to a html file?
Try this.