|
8 | 8 | - [x] Users can login |
9 | 9 | - [x] Jwt auth is implemented |
10 | 10 | - [x] Users can create posts |
11 | | -- [ ] Users can reply to each other's posts |
| 11 | +- [x] Users can reply to each other's posts |
12 | 12 | - [x] Users can delete their posts. |
13 | | -- [ ] Users can edit their posts. |
14 | | -- [ ] Secure all user post routes with JWT auth. |
| 13 | +- [x] Secure all user post routes with JWT auth. |
15 | 14 |
|
16 | 15 | ## Prior to Running |
17 | 16 |
|
@@ -65,19 +64,22 @@ If successful it redirects to the user's post page, other it errors. |
65 | 64 |
|
66 | 65 | ### Posts |
67 | 66 |
|
| 67 | +#### Posts Page |
| 68 | + |
68 | 69 | After login, the user will have access to their Posts page which is their homepage. |
69 | 70 | The route is located at ` GET localhost:8080/posts`. The Posts page is the where the users |
70 | | -can view and submit posts. New posts are submitted via `POST localhost:8080`. |
71 | | -Each Post contains the user's username, the date the post was submitted, and |
72 | | -the post's body. The max size of the post's body is 350 characters. |
73 | | - |
74 | | -Users can also delete their posts by clicking the delete button on any post |
75 | | -or at `POST localhost:8080/posts/:id`. |
| 71 | +can view, submit, and delete or reply to posts. Each Post contains the user's username, |
| 72 | +the date the post was submitted, and the post's body. |
| 73 | +The max size of the post's body is 350 characters. |
76 | 74 |
|
| 75 | +#### Replying to Posts |
77 | 76 |
|
78 | | -#### Current Progress |
| 77 | +If a user clicks on the reply button for a another user's post they'll be sent to the reply page |
| 78 | +`GET localhost:8080/posts/:id/reply`. In the reply page the post in question is shown above |
| 79 | +while you create your reply in the textbox below. Once your done you click the submit button |
| 80 | +which sends a `POST localhost:8080/posts/:id/reply`. |
79 | 81 |
|
80 | | -Currently the user can only create new posts to themselves an delete them. |
81 | | -Users cannot reply to each other users. Posts also, can't be edited. |
82 | | -Being able to make replies and edit your posts are wips. |
83 | 82 |
|
| 83 | +#### Deleting Posts |
| 84 | +Users can also delete their posts by clicking the delete button which sends |
| 85 | +a `POST localhost:8080/posts/:id/delete`. |
0 commit comments