Skip to content

Frontend Routes

John Sims edited this page Jun 29, 2021 · 1 revision

Frontend Routes

This web app contains user-facing routes that a user can access and interact with.

/

  • This page will show a login/signup splash page that gives a brief image/text driven explanation of the website

  • GET /

/login

  • This page displays a log in form.

  • GET /login

  • POST /login

/signup

  • An individual may create a new account. This page will display a signup form.

  • GET /signup

  • POST /signup

/farms

  • Users will be able to see a list of farms that they can visit

  • GET /farms

/farms/:id

  • This page will display an individual farm along with general details. Description, rate, farmer, unique events, etc. This is also where users would book a stay.

  • GET /farms/:id

  • POST /bookings

/bookings/:id

  • This page will display a user's (farmer or guest) upcoming bookings. They will be able to edit, delete, and potentially message the farmer from here.

  • GET /bookings/:userId

  • PATCH /bookings/:bookingId

  • DELETE /bookings/:bookingId

Clone this wiki locally