Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Routing #186

Open
chamsou-ai opened this issue Mar 23, 2023 · 1 comment
Open

Routing #186

chamsou-ai opened this issue Mar 23, 2023 · 1 comment

Comments

@chamsou-ai
Copy link

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 ??

@SoumyaSubhrajit
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants