diff --git a/src/elysia.ts b/src/elysia.ts index 0d65a843..bbae45e4 100644 --- a/src/elysia.ts +++ b/src/elysia.ts @@ -141,6 +141,7 @@ new Elysia() }, { response: t.Array(UserSchema), + type: "application/json", detail: { operationId: "getStaff" }, } ) @@ -200,7 +201,11 @@ new Elysia() return news; }, - { response: t.Array(NewsSchema), detail: { operationId: "getNews" } } + { + response: t.Array(NewsSchema), + type: "application/json", + detail: { operationId: "getNews" }, + } ) .listen(3000);