Skip to content

Commit

Permalink
#160416618 Users can request to be an author (#57)
Browse files Browse the repository at this point in the history
* feat(requestToBeAuthor): updated controller

* feat(requestToBeAuthor): implement a feature for user to request to be an author

- write relevant tests for the above feature
- add the ability for a user to request to be an author
- add the ability for admin to be able to view and respond to requests to be authors
- document endpoints for the above feature

[Delivers #160416618] [Delivers #160555979]

* feat(requestToBeAuthor): implement a feature for user to request to be an author

- write relevant tests for the above feature
- add the ability for a user to request to be an author
- add the ability for admin to be able to view and respond to requests to be authors
- document endpoints for the above feature

[Delivers #160416618] [Delivers #160555979]
  • Loading branch information
iamuchejude authored and aknwosu committed Sep 20, 2018
1 parent 71b32ab commit de697b9
Show file tree
Hide file tree
Showing 15 changed files with 2,322 additions and 1,228 deletions.
400 changes: 400 additions & 0 deletions server/controllers/authorRequests.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion server/controllers/favoriteArticle.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ class FavoriteArticleController {
})
.then((favoritedArticle) => {
const pagination = paginateArticle(favoritedArticle, currentPage, limit);
res.status(200).json({
return res.status(200).json({
message: 'Your favorite articles',
pagination,
favoritedArticles: favoritedArticle.rows,
Expand Down
Loading

0 comments on commit de697b9

Please sign in to comment.