Skip to content

Commit

Permalink
Update ReadMe
Browse files Browse the repository at this point in the history
  • Loading branch information
xkelxmc committed Jun 18, 2020
1 parent 17fda36 commit 30140c6
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,20 @@ npm run lint
npm run lint:fix
```

## Routes:
#### Auth:
- POST: ```/auth/login``` login with ```{email: 'string', password: 'string'}```
- GET: ```/auth/logout``` logout
- POST: ```/auth/signup``` SignUp with ```{email: 'string', password: 'string'}```
#### Users:
- GET: ```/user``` get current user
- GET: ```/user/:userId``` get user by Id
- GET: ```/users/``` find all users
#### Posts:
- POST: ```/posts/``` create new post form user ```{title: 'string', body: 'string'}```
- GET: ```/posts/:postId``` get posts by Id
- GET: ```/posts/``` find all posts

## Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Expand Down

0 comments on commit 30140c6

Please sign in to comment.