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 discover/add post api route #25

Open maechen opened 10 months ago

maechen commented 10 months ago

As a user, when I click add on the activity card on the discover page, I should see those activities in the MyTrips page and get a message on the discover page if it was successfully added or not.

Acceptance Criteria: Query for user id based on username saved in session. insert trip start and end date and user id into the trips table and return the trip id. insert trip id, activity title, description, and location into activities table. set the action to add and display success or error message on discover page.