-
Notifications
You must be signed in to change notification settings - Fork 0
Routes
Anna Oh edited this page Nov 21, 2017
·
5 revisions
- GET / StaticPagesController#root
- POST /api/users - sign up
- POST /api/session - log in
- DELETE /api/session - log out
- GET /api/photos - returns relevant photo (filtered by data/params)
- GET /api/photos/:photoId - returns photo
- POST /api/likes - like a photo
- DELETE /api/likes/:likeId - unlike a photo
- GET /api/comments - display all comments for a photo
- POST /api/comments - write a comment for a photo
- PATCH /api/comments/:commentId - edit comment for a photo
- DELETE /api/comments/:commentId - delete comment for a photo
- POST /api/following - current user is now following other user
- DELETE /api/following/:followingId - current user is now not following other user
/login
/signup
/main - homepage, index of photos
/photos/:photoId - photo show
/users/:userId - user profile