Skip to content

API Documentation

DanielLaV edited this page Dec 9, 2021 · 2 revisions

API-Routes

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.

Comments

  • 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

Likes

  • 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

Clone this wiki locally