Skip to content

Frontend Routes

88joonyc edited this page Aug 27, 2021 · 2 revisions

/login

This page displays a log in form

  • GET /login
  • POST /login

/signup

This page displays a signup form

  • GET /signup
  • POST /signup

/

This page displays likes on each individual event card. This page also displays a navigation bar with login/signup or logout buttons. If the logged-in user has an event on this page, that event will have an update and delete button. Logged-in users can like/heart the events.

  • GET /api/hearts
  • POST /api/hearts
  • DELETE /api/hearts/:id

/host

This page displays a form in which a logged-in user can create a new event. This page will also display a navigation bar with a homepage button and a logout button.

  • POST /api/events

/events/:id

This page displays an individual event and its associated tickets and hearts. This page also displays a navigation bar with a homepage button and a login/signup or logout button (depending on logout setting). Logged in users can like/heart an event and register for tickets on this page. If the logged-in user owns the event, the page also displays an update event and delete event button.

  • GET /api/events/:id
  • GET /api/tickets/:id
  • POST /api/tickets
  • DELETE /api/tickets/:id
  • POST /api/hearts
  • DELETE /api/hearts/:id

Clone this wiki locally