-
Notifications
You must be signed in to change notification settings - Fork 0
API Documentation
DanielLaV edited this page Dec 10, 2021
·
2 revisions
This web app uses the following API routes to dynamically update the page to create a single-page-app-like feel for the user for specific features.
-
A logged in user can create, edit or delete one of their own comments without causing a refresh/redirect.
- POST /api/stories/comment
- PUT/PATCH /api/comments/:id
- DELETE /api/comments/:id
-
A logged in user can like or unlike a story with visible confirmation without causing a refresh/redirect.
- POST /api/stories/like
- POST /api/comments/like
- DELETE /api/likes/:id