CU-CSCI3308-Fall2023 / VentureVibes

Empowering personalized travel experiences, our app simplifies vacation planning by crafting tailored itineraries that match individual preferences. We aspire to streamline the overwhelming array of options and create memorable, personalized journeys for every traveler, ensuring each person discovers the perfect activities that resonate with their
0 stars 1 forks source link

create trips/delete post api route #26

Open maechen opened 10 months ago

maechen commented 10 months ago

As a user, I when I click on the delete button on an activity card in the MyTrips page, I should see the activity removed from the trip. Then I should see a success or error message on the MyTrips page.

Acceptance Criteria: Query for the user id where the username is the username saved in the session. Then query to delete the activity from the activities table where it matches the user id and the activity title. Render the page with the new trips data with action delete and message.

WenZh96 commented 10 months ago

as I user I should be able to delete both trip or individual activity from the trip, acceptance criteria: query for the activities under the trip, delete activities under the trip, query for the username-trip id, delete the trip