Routes
app.js
Routes - example with form
We need to install body-parser
for parsing incoming requests.
app.js
Routes - using Router and Path - Serving HTML pages
Typically you dont want to have all the code in single file. Using Router
you can split routes code into separate files.
util/path.js
routes/admin.js
routes/shop.js
views/add-product.html
views/404.html
views/shop.html
app.js