llllllll-l / TripMDB

A fun way for movie nerds to find their next trip
2 stars 0 forks source link

Add POST method so current user can add a trip #42

Closed llllllll-l closed 5 months ago

llllllll-l commented 5 months ago

In MovieDetails.jsx, add a POST method that adds the trip to the current user using the endpoint /trips. The payload should be in JSON format and have following params:

{ "userId": string, "movieId": int, "date": "string", "description": "string" }