Skip to content

Commit

Permalink
easy
Browse files Browse the repository at this point in the history
  • Loading branch information
0-don committed Nov 2, 2024
1 parent e9c1c36 commit 600980c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/elysia.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ new Elysia()
},
{
response: t.Array(UserSchema),
type: "application/json",
detail: { operationId: "getStaff" },
}
)
Expand Down Expand Up @@ -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);

Expand Down

0 comments on commit 600980c

Please sign in to comment.