This commit is contained in:
2025-06-04 19:40:22 +05:00
parent bc62ca7eb4
commit 2b1e2fedd4
2 changed files with 17 additions and 4 deletions
+12 -1
View File
@@ -15,7 +15,18 @@ const sessionsController = new Elysia({ prefix: "/sessions" })
return await getSessions(auth, query);
},
{
query: t.Object({ limit: t.Optional(t.Number()) }),
query: t.Partial(
t.Object({
limit: t.Number(),
status: t.Union([
t.Literal("starting"),
t.Literal("started"),
t.Literal("restarting"),
t.Literal("ending"),
t.Literal("ended"),
]),
})
),
}
)
.get("/:id", async ({ params }) => {