Skip to content
New issue

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

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

Already on GitHub? # to your account

start the API with GET Products #4

Merged
merged 1 commit into from
May 21, 2022
Merged

start the API with GET Products #4

merged 1 commit into from
May 21, 2022

Conversation

ssary
Copy link
Collaborator

@ssary ssary commented May 20, 2022

I didn't complete the database part yet, i used dummy array to test the api

Copy link
Owner

@skittlesaur skittlesaur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move the logical function to the controller folder. The path /products will have it's own routing point. In the Products file in routes folder, add the app.get('/', REFERENCE TO METHOD WITH LOGIC).

@skittlesaur skittlesaur merged commit 11669c4 into develop May 21, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants