-
Notifications
You must be signed in to change notification settings - Fork 0
Routes
Gregory Del Carlo edited this page Feb 5, 2021
·
9 revisions
- root to: “static_pages/root”
- static root page for react to load into
- index
- GET “/api/users”
- Return all users
- GET “/api/users”
- show
- GET “/api/users/:id”
- Return single user
- GET “/api/users/:id”
- update
- POST “/api/users/:id”
- update database with new information for a user
- POST “/api/users/:id”
- edit
- GET “/api/users/:id/edit”
- returns previous info for a user
- GET “/api/users/:id/edit”
- destroy
- DELETE “/api/users/:id”
- remove a user
- DELETE “/api/users/:id”
- index
- GET “/api/whiskey”
- return all whiskeys
- GET “/api/whiskey”
- show
- GET “/api/whiskey/:id”
- return single whiskey with reviews
- GET “/api/whiskey/:id”
- update
- POST “/api/whiskey/:id”
- updates whiskey with new information
- POST “/api/whiskey/:id”
- edit
- GET “/api/whiskey/:id/edit”
- returns previous information on a whiskey
- GET “/api/whiskey/:id/edit”
- destroy
- DELETE “/api/whiskey/:id”
- deletes a whiskey
- DELETE “/api/whiskey/:id”
- show
- GET “/api/reviews/:id”
- returns single review with comments
- GET “/api/reviews/:id”
- update
- POST “/api/reviews/:id”
- updates a review with new information
- POST “/api/reviews/:id”
- edit
- GET “/api/reviews/:id/edit”
- returns old information on a review
- GET “/api/reviews/:id/edit”
- destroy
- DELETE “/api/reviews/:id”
- delete a review
- DELETE “/api/reviews/:id”
- update
- POST “/api/comments/:comment_id”
- updates a comment with new information
- POST “/api/comments/:comment_id”
- edit
- GET “/api/comments/:comment_id/edit”
- gets previous information on a comment
- GET “/api/comments/:comment_id/edit”
- destroy
- DELETE “/api/comments/:comment_id”
- deletes a comment
- DELETE “/api/comments/:comment_id”
- index
- GET “/api/lists”
- Return all lists filtered by frontend
- GET “/api/lists”
- show
- GET “/api/lists/:id”
- return single list
- GET “/api/lists/:id”
- update
- POST “/api/lists/:id”
- updates a list name
- POST “/api/lists/:id”
- edit
- GET “/api/lists/:id/edit”
- returns old list name
- GET “/api/lists/:id/edit”
- destroy
- DELETE “/api/lists/:id”
- delete a list
- DELETE “/api/lists/:id”
- UsersIndexContainer
- Used for rendering all users, in a container to map filtering functions to the presentational component
- UserShow
- Show a single user, backend logic returns correct user
- UserCreate
- Renders a form to create a new user
- UserEdit
- Edits and updates a user's information
- WhiskeyIndexContainer
- Used for rendering all drinks, and is filtered by selectors in container
- WhiskeyShow
- Render's a single whiskey's information
- WhiskeyCreate
- renders a form to create a new whiskey
- WhiskeyEdit
- Edits and updates a whiskey's information
- ReviewsIndexContainer
- Container for filtering and then rendering reviews for a certain whiskey
- ReviewShow
- Shows a single reviews details and comments
- ReviewEdit
- Edits and updates a single review
- CommentsIndexContainer
- Works the same as ReviewsIndex but for comments
- CommentShow
- Shows a single comment
- CommentEdit
- Renders page to edit and update a comments information