Routing Life Hacks: Serving a Node.js Express App from a Sub-Folder
by Oleg2mAugust 31st, 2019 Too Long; Didn't Read
Express is probably the most popular web framework for Node.js and tons of tutorials and instructions have already been written. However, most of them don't cover the topic I am going to tell you about. A standard approach to routing that is seen across various docs looks like this: or this: "Routing structure probably looks somewhat similar to the picture below," but in real-world there might be a small problem. An actual catalogue for your application on hosting platform might be other than the domain root.