VNViraj Nirbhavaneinvirajsblog.hashnode.dev·Jan 31, 2023 · 2 min readControllersA GET request route that is set up in a separate route File instead of the server.js file. /** greetingRoute.js */ ... router.get('/', (req,res) => { res.status(200).json({ message: "Greetings!"}); }); ... We could set up routes like this, they ...00
VNViraj Nirbhavaneinvirajsblog.hashnode.dev·Jan 29, 2023 · 2 min readRoutesA route is a code that represents an HTTP action, (GET, POST, PUT, DELETE). It has a URL endpoint, a function that is used to handle when that endpoint is accessed. We use postman to test these endpoints. Accessing these endpoints before setting up t...00
VNViraj Nirbhavaneinvirajsblog.hashnode.dev·Jan 22, 2023 · 2 min readExpress ServerExpress is a minimal and flexible Node.js web application framework that provides a robust set of features for web and mobile applications. With a myriad of HTTP utility methods and middleware at your disposal, creating a robust API is quick and easy...00