Skip to content
Christopher Lee edited this page Dec 27, 2017 · 6 revisions

αperture Routes

Frontend Routes

  • / - initial page when not logged in
  • /signup
  • /login
  • /:username - user profile
  • /feed - photo feed, homepage (followed users)
  • /discover - browse new/popular photos (unfollowed users)
  • /photos/new - post a photo
  • /photos/:photoId - show photo
  • /photos/:photoId/edit - update a photo

API Endpoints

users

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

photos

  • GET /api/photos - returns all photos
  • GET /api/photos/:id - returns a photo
  • POST /api/photos - creates a photo
  • PATCH /api/photos/:id - edit a photo
  • DELETE /api/photos/:id - remove a photo

likes

  • POST /api/photos/:photoId/likes - like a photo
  • DELETE /api/photos/:photoId/likes - unlike a photo

comments

  • POST /api/photos/:photoId/comments - create a comment
  • `PATCH /api/photos/:photoId/comments/commentId - edit a comment
  • DELETE /api/photos/:photoId/comments - remove a comment

session

  • CREATE /api/session
  • DESTROY /api/session

Clone this wiki locally