Please enable JavaScript.
Coggle requires JavaScript to display documents.
Tweetie - Coggle Diagram
Tweetie
Routes
User
:userId
/user/:userId
/user/following/:userId
/user/followers/:userId
auth
/signup
/signin
isAuthenticated
isSignedIn
isAdmin
tweet
/post/create/:userId ===> User creates a new post
/post/delete/:userId ===> User/admin deletes a post (DEL)
/posts/:userId ===> Get all posts of a user (GET)
/feed/:userId ===> Feed of all posts for a user (GET)
/post/:postId ===> A particular post (GET)
Models
user
userName
firstName
lastName
email
encry_password
role
following
followers
salt
profile photo
Bio
post
text (String)
userId (ObjectId)
likes
userId
isRetweeted (Boolean)
retweetDetails
userId
isComment (Boolean)
comment (String)
Controllers