diff --git a/example/index.ts b/example/index.ts index e97ac36..fd602ae 100644 --- a/example/index.ts +++ b/example/index.ts @@ -9,7 +9,7 @@ const app = new Elysia({ swagger({ documentation: { info: { - title: 'Elysia Swagger', + title: 'Elysia Scalar', version: '0.8.1' }, tags: [ diff --git a/example/plugin.ts b/example/plugin.ts index 851abba..e381c31 100644 --- a/example/plugin.ts +++ b/example/plugin.ts @@ -81,6 +81,7 @@ export const plugin = new Elysia({ // } // ) .post('/file', ({ body: { file } }) => file, { + type: 'formdata', body: t.Object({ file: t.File({ type: ['image/jpeg', 'image/'],