A reddit clone written using node.js / express.js / mongodb / passport.js. https://seiya-beddit.herokuapp.com/
A reddit clone written using node.js / express.js / mongodb / passport.js
https://seiya-beddit.herokuapp.com/
URL | Method | Details | Body |
---|---|---|---|
/api/frontpage | GET | Retrieves all posts from frontpage | |
/api/r/subreddit
|
GET | Retrieves all posts from subreddit
|
|
/api/post/id
|
GET | Retrieves post by id
|
|
/api/post/id /comments |
GET | Retrieves all comments for post by id
|
|
/api/u/user
|
GET | Retrieves profile information about user
|
|
/api/u/user /posts |
GET | Retrieves all posts by user
|
|
/api/u/user /comments |
GET | Retrieves all comments by user
|
|
/api/register | POST | Registers an account |
username , password
|