Skip to content

frontend routes

P. Dexter Assaf edited this page Dec 18, 2022 · 1 revision

Backend Routes

HTML

  • GET / - StaticPagesController#root

API Endpoints

users

  • GET /api/users - returns the user information of displayed chirps and for the User Search feature
  • POST /api/users - sign up

session

  • POST /api/session - log in
  • DELETE /api/session - log out

spots

  • 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)

reviews

  • 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
Clone this wiki locally