Frontend Routes - ZhiqiLinn/airVnb GitHub Wiki
Home Page '/'
This page displays the splash page.
Link:
- /login
- /signup
- /listings
Log-in Page'/login'
This page displays a log in form and allows user to log in.
API:
- POST /login
Sign-up Page '/signup'
This page displays a sign up form and allows user to sign up.
API:
- POST /signup
Listings Page '/listings/new'
This page displays a listing posting form and allows user to post a listing.
API:
- POST /listings/new
Listings Page '/listings'
This page displays all the Listings.
Link:
- /listings/:id
API:
- POST /listings
User Listings Page '/users/listings'
This page displays all the Listings that were posted by the logged in user.
Link:
- listings/:id
API:
- PUT /listings/:id
- DELETE /listings/:id
User Listing Detail Page '/listings/:id'\
API:
- PUT /listings/:id
- DELETE /listings/:id
- POST /bookings
User Bookings Page '/users/bookings'
This page displays all the bookings that were reserved by the logged in user.
Link:
- /bookings/:id
API:
- PUT /bookings/:id
- DELETE /bookings/:id
User Bookings Detail Page '/bookings/:id'\
Link:
- /user/bookings
API:
- PUT /bookings/:id
- DELETE /bookings/:id