lint code

This commit is contained in:
2025-04-14 12:36:04 +02:00
parent 2298c1c115
commit 0db5831116
20 changed files with 1128 additions and 548 deletions

View File

@@ -1,9 +1,9 @@
import { z } from 'zod'
import { useValidatedBody } from 'h3-zod'
import { z } from 'zod'
export default eventHandler(async (event) => {
const { pathname } = await useValidatedBody(event, {
pathname: z.string()
pathname: z.string(),
})
await hubBlob().del(pathname)

View File

@@ -8,11 +8,11 @@ export default eventHandler(async (event) => {
ensureBlob(file, {
maxSize: '1MB',
types: ['image', 'pdf', 'application/pdf']
types: ['image', 'pdf', 'application/pdf'],
})
return hubBlob().put(file.name, file, {
addRandomSuffix: false,
prefix: 'files'
prefix: 'files',
})
})