Frontend Routes - makon57/MixTrail GitHub Wiki
User-facing routes
/login
Log in page
This page displays a login form with a regular login option, a demo login option, and access to sign-up for an account.
- GET /login
- POST /login
/signup
This page displays a signup form.
Sign up page
- GET /signup
- POST /signup
/
This page displays hiking trails, as well as a navigation bar with a logout button.
- GET /
/trails/:id
This page displays individual hiking trails with associated a review and visited, as well as a navigation bar with login/signup or logout buttons. if the logged-in user has visited the trail, it will display visited as well as an option to see reviews. Logged in users can update the review or delete it from their list
- GET /trails/:id
- POST /trails/:id/review
- DELETE /trails/:id/review
- PATCH /trails/:id/review