Skip to content
Dre edited this page Mar 2, 2021 · 1 revision

User-facing routes

/users/login

Login Page

Routes Used

  • GET /users/login -- show form to login
  • POST /users/login -- login user

/users/logout

Logout button in navbar, authentication required to access

Route Used

  • GET /users/logout -- logout user

/users/signup

Sign Up page

Routes Used

  • GET /users/sign-up -- show form to create user
  • POST /users/sign-up -- create user and login user

/users/:id

Authentication required to access

Navigation bar


Stretch Route

  • GET /users/:id/reviews -- show all reviews a user has written

/hosts/:id

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

/reviews

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

Clone this wiki locally