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

Make a route for creating new post at backend #80

Open
8 tasks
hungngodev opened this issue Jun 8, 2024 · 0 comments
Open
8 tasks

Make a route for creating new post at backend #80

hungngodev opened this issue Jun 8, 2024 · 0 comments
Assignees
Labels

Comments

@hungngodev
Copy link
Owner

Issuer:

Hung Ngoos

Assignee(s):

Vien Nguyen

Requirements:

  • Please list what tasks need to be done (be specific here)
  • Make a route according to the route design that we have discussed
  • This should be a POST Request, the data should be sent through req. body
  • Using Postman to test your own routes when creating a new post
  • Using MongoDB Compass to see if it is really created
  • It should be linked with the person creating that post. Hint: you could use middleware check user in Auth router, which will pass the user id through to your controller if that person is logged in
  • However, to trigger the login through Postman, you must log in through Postman by making some POST request. The endpoint should be found through index.ts and auth router.
  • Please finish this in one day

Dependencies:

  • Please list the files that might be involved in this issue
  • Mongoose
  • Express middleware
  • Router

Done requirements:

  • When will this issue count as done?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: In Progress
Development

No branches or pull requests

2 participants