Skip to content

Commit a00c908

Browse files
committed
Update the readme to show user replies and jwt authorization works
Updated the milestones for the readme to show user replies can be submitted via the reply button and their post routes are protected using jwt authorization.
1 parent c06bbd7 commit a00c908

1 file changed

Lines changed: 15 additions & 13 deletions

File tree

readme.md

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,9 @@
88
- [x] Users can login
99
- [x] Jwt auth is implemented
1010
- [x] Users can create posts
11-
- [ ] Users can reply to each other's posts
11+
- [x] Users can reply to each other's posts
1212
- [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.
1514

1615
## Prior to Running
1716

@@ -65,19 +64,22 @@ If successful it redirects to the user's post page, other it errors.
6564

6665
### Posts
6766

67+
#### Posts Page
68+
6869
After login, the user will have access to their Posts page which is their homepage.
6970
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.
7674

75+
#### Replying to Posts
7776

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`.
7981

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.
8382

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

Comments
 (0)