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

Logic To Take input from User and Save it to DB #3

Open
uzaxirr opened this issue Oct 6, 2021 · 0 comments
Open

Logic To Take input from User and Save it to DB #3

uzaxirr opened this issue Oct 6, 2021 · 0 comments

Comments

@uzaxirr
Copy link
Member

uzaxirr commented Oct 6, 2021

Objective
To create controller for the API. A controller contains core business logic for the API

Solution
The logic is needed to be defined in controller/upload.controller.js file
It should take the given arguments from req.body

  • Topic
  • Quote

Then create a new object for the quote and save it to DB using mongoose

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

1 participant