mdgspace / codephile-backend

Back-end for Official Codephile App
https://codephile.mdg.iitr.ac.in/
16 stars 6 forks source link

Follow feature #29

Closed dev-ritik closed 5 years ago

dev-ritik commented 5 years ago

Implement the follow feature with database and endpoint support

Arnesh07 commented 5 years ago

What exactly do we have to do in this? I guess that uid's of the people I follow would be stored in my database and to implement the "compare" feature I would request the uid's of the follower and the person being followed and return their stats. @dev-ritik

dev-ritik commented 5 years ago

Yes exactly @Arnesh07

Arnesh07 commented 5 years ago

Should I create a new controller other than the user for this? Then the endpoint would be something like ..../follow?uid1=..&uid2=.. @dev-ritik

dev-ritik commented 5 years ago

Just pass 1 uid in the param (of the other user). Identify the first user by the token