complete-node-bootcamp
complete-node-bootcamp copied to clipboard
Routing
hi there , i have a question about routing if i use routing in node js that means i dont need to make folders and files in my website ??
hi ,@chamsou-ai routing menas HTTP requests to the appropriate route handler based on the request URL based on this for the routing you do some task in the api call right, I means is for ex, let's say the API call is something like -> 127.0.0.1:8000/api/v1/tours/somepage
for this route you have to add some logic to the response from the server end right, instead of making all route logic in one file we built sperate file system to do some systematic way, ex-> userController.js, tourController.js this type of controller are basically in the controller's modules so we need folder system for structure manner in case of routing.
If you find helpful please close the issue.