mirror of
https://github.com/zoriya/elysia-swagger.git
synced 2026-06-06 07:05:01 +00:00
🎉 feat: merge scalar
This commit is contained in:
+1
-1
@@ -9,7 +9,7 @@ const app = new Elysia({
|
||||
swagger({
|
||||
documentation: {
|
||||
info: {
|
||||
title: 'Elysia Swagger',
|
||||
title: 'Elysia Scalar',
|
||||
version: '0.8.1'
|
||||
},
|
||||
tags: [
|
||||
|
||||
@@ -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/'],
|
||||
|
||||
Reference in New Issue
Block a user