Closed dnmct closed 1 month ago
Create a route that can make a reservation
id
screeningId
userId
movieId
date
time
seats
[x] Create a post route that takes all the fields above except id (this should be autogenerated)
[ ] Validate the request.body with a zod schema
[ ] return the created reservation
schema screening, zod check body valid reservation check if user id is actual user check if screening exists
Create a route that can make a reservation
id
screeningId
userId
movieId
date
time
seats
[x] Create a post route that takes all the fields above except id (this should be autogenerated)
[ ] Validate the request.body with a zod schema
[ ] return the created reservation