With this PR we can now read the posts within different routes.
We can read :
All posts.
Post by Id.
All user's posts.
One user's post by id.
Please refer to the code for more info.
Note:
This is built on top of the create PR. So to avoid merge conflicts please consider merging them by order or just merge the last one.
Also, you can notice on the code that I did not use our middelewares like verifyLogin or verifyEmail, I did so for simplicity sake and faster development. I will fire up a PR to add them after the Post system implementation.
Hey there everyone !
With this PR we can now read the posts within different routes.
We can read :
Please refer to the code for more info.
Note:
This is built on top of the create PR. So to avoid merge conflicts please consider merging them by order or just merge the last one.
Also, you can notice on the code that I did not use our middelewares like
verifyLogin
orverifyEmail
, I did so for simplicity sake and faster development. I will fire up a PR to add them after the Post system implementation.Hope that is clear. Massiles.