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

Refactor the code of server.js file #121

Open
zeel-codder opened this issue Oct 9, 2023 · 1 comment
Open

Refactor the code of server.js file #121

zeel-codder opened this issue Oct 9, 2023 · 1 comment
Assignees

Comments

@zeel-codder
Copy link
Owner

File: https://github.com/zeel-codder/Recursion-Hub/blob/main/server.js#L15

Example: We can use the express router API, put the code of the endpoint in a diff file/folder, and use it in the server.js file

@ashvaneetk
Copy link

Assign me this issue @zeel-codder . I will edit the GetList function to a separate function named getList for improved organization. This function now returns an empty array if an error occurs.

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