diff --git a/src/runtime/server/api/_hub/blob/delete-folder.post.ts b/src/runtime/server/api/_hub/blob/delete-folder.post.ts index 69fec834..ac7c935b 100644 --- a/src/runtime/server/api/_hub/blob/delete-folder.post.ts +++ b/src/runtime/server/api/_hub/blob/delete-folder.post.ts @@ -1,4 +1,4 @@ -import { eventHandler, readValidatedBody } from 'h3' +import { eventHandler, readValidatedBody, sendNoContent } from 'h3' import { z } from 'zod' import { hubBlob } from '../../../utils/blob' import { requireNuxtHubAuthorization } from '../../../utils/auth' diff --git a/src/runtime/server/utils/blob.ts b/src/runtime/server/utils/blob.ts index 7d676adf..ed622e5a 100644 --- a/src/runtime/server/utils/blob.ts +++ b/src/runtime/server/utils/blob.ts @@ -4,7 +4,7 @@ import type { R2Bucket, ReadableStream, R2MultipartUpload } from '@cloudflare/wo import { ofetch } from 'ofetch' import mime from 'mime' import type { H3Event } from 'h3' -import { setHeader, createError, readFormData, getValidatedQuery, getValidatedRouterParams, readValidatedBody } from 'h3' +import { setHeader, createError, readFormData, getValidatedQuery, getValidatedRouterParams, readValidatedBody, sendNoContent } from 'h3' import { defu } from 'defu' import { randomUUID } from 'uncrypto' import { parse } from 'pathe'