-
Notifications
You must be signed in to change notification settings - Fork 0
Routes
Dre edited this page Mar 2, 2021
·
1 revision
User-facing routes
Login Page
Routes Used
- GET
/users/login-- show form to login - POST
/users/login-- login user
Logout button in navbar, authentication required to access
Route Used
- GET
/users/logout-- logout user
Sign Up page
Routes Used
- GET
/users/sign-up-- show form to create user - POST
/users/sign-up-- create user and login user
Authentication required to access
Navigation bar
Stretch Route
- GET
/users/:id/reviews-- show all reviews a user has written
Authentication required to access
Navigation bar, list hosts, details for specified host, review host, reserve host (add to event)
- Stretch: host delete button
Routes Used
- GET
/events-- list all events with details (name, description), default ordered by event date - GET
/events/new-- _show form to create event - POST
/events-- _create event - GET
/events/:id-- show specified event with details (name, location, description, host) - GET
/events/:id/edit-- _show form to edit event
Authentication required to access
Navigation bar, form to review a host
Routes Used
- GET
/reviews/new-- show review form - POST
/reviews-- create review - GET
/reviews/:id/edit-- _show form to edit review