initial commit
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
export default defineEventHandler(async (event) => {
|
||||
const input = await readValidBody(event, newNoteSchema)
|
||||
const row = await createRow<NoteRow>(event, 'notes', {
|
||||
Datum: input.date,
|
||||
Notes: input.text
|
||||
})
|
||||
return toNote(row)
|
||||
})
|
||||
Reference in New Issue
Block a user