Node.js / Express.js – How does app.router work?
Note: This describes how Express worked in versions 2 and 3. See the end of this post for information about Express 4. static simply serves files (static resources) from disk. You give it a path (sometimes called the mount point), and it serves the files in that folder. For example, express.static(‘/var/www’) would serve the files … Read more