fix: Use a better ID format

This commit is contained in:
Wanjohi
2025-10-27 08:25:31 +03:00
parent 3d3a303eb9
commit 2dbfb02c52
7 changed files with 126 additions and 36 deletions

View File

@@ -0,0 +1,24 @@
import { Hono } from "hono";
import { describeRoute, resolver } from "hono-openapi";
export namespace SessionRoute {
export const route = new Hono().get(
"/",
describeRoute({
tags: ["Session"],
operationId: "session.list",
summary: "List all active sessions",
description: "List all the current user's active sessions",
responses: {
200:{
description:"List of sessions",
content:{
"application/json":{
schema: resolver(Session.Info.array())
}
}
}
},
}),
);
}