initial commit

This commit is contained in:
2026-09-23 11:44:36 +02:00
commit ab3bbb6338
42 changed files with 9595 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
export default defineEventHandler(async (event) => {
const input = await readValidBody(event, newReviewSchema)
const row = await createRow<ReviewRow>(event, 'reviews', {
title: input.title,
date: input.date,
author_or_director: input.author ?? '',
review: input.text,
medium: await mediumOptionId(event, input.medium)
})
return toReview(row)
})