-
Notifications
You must be signed in to change notification settings - Fork 0
frontend routes
P. Dexter Assaf edited this page Dec 18, 2022
·
1 revision
-
GET /
-StaticPagesController#root
-
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/spots
- returns relevant spots -
GET /api/spots/:id
- returns spot by its specific id -
POST /api/spots
- creates a spot (requires Auth) - `POST /api/:spotId/images - creates a spot image for spot (requires Auth)
-
PUT /api/spots/:id
- edit a spot (requires Auth) -
DELETE /api/spots/:id
- remove a spot (requires Auth)
-
GET /api/spot/:id/reviews
- shows a spots current reviews - `GET /api/reviews/:reviewId/images
-
POST /api/spot/:id/
- post a review for a spot