-
Notifications
You must be signed in to change notification settings - Fork 21
backend routes
Christopher Cheasty edited this page Feb 20, 2023
·
7 revisions
-
GET /
-StaticPagesController#FrontendIndex
-
GET /api/users
- returns the user information of displayed chirps and for the User Search feature -
POST /api/users
- sign up
-
POST /api/session
- log in -
DELETE /api/session
- log out
-
GET /api/chirps
- returns relevant chirps (filtered bydata
/params
) -
GET /api/chirps/:id
- returns chirp -
POST /api/chirps
- creates a chirp -
PATCH /api/chirps/:id
- edit a chirp -
DELETE /api/chirps/:id
- remove a chirp
-
POST /api/likes
- like a chirp -
DELETE /api/likes/:id
- unlike a chirp
Note: likes does not include a GET
route because we will have these routes render the api/chirps/show.json.jbuilder
view. See Sample State.