feat(api): add file upload api, get a upload url, then upload file, max 50mb for now
This commit is contained in:
1 parent
478859d9b5
commit
1ced8095dc
6 files changed
+358
-216
No files matched your search
@@ -0,0 +1,18 @@
|
||||
import type { ResponseConfig } from "@asteasolutions/zod-to-openapi";
|
||||
import { z } from "@hono/zod-openapi";
|
||||
|
||||
export const authError = {
|
||||
401: {
|
||||
content: {
|
||||
"text/plain": {
|
||||
schema: z.string().openapi({
|
||||
type: "string",
|
||||
example: "Invalid or expired token",
|
||||
}),
|
||||
},
|
||||
},
|
||||
description: "Invalid or expired token",
|
||||
},
|
||||
} satisfies {
|
||||
[statusCode: string]: ResponseConfig;
|
||||
};
|
||||
Reference in new issue
Block a user