feat: I do not remember

This commit is contained in:
Wanjohi
2025-10-28 06:47:08 +03:00
parent 3a08e27614
commit caf0bbbee2
2 changed files with 10 additions and 8 deletions

View File

@@ -3,6 +3,7 @@ import { randomBytes } from "crypto";
export namespace Identifier { export namespace Identifier {
export const prefixes = { export const prefixes = {
run: "run",
app: "app", app: "app",
user: "usr", user: "usr",
steam: "stm", steam: "stm",

View File

@@ -1,5 +1,6 @@
import { Hono } from "hono"; import { Hono } from "hono";
import { describeRoute, resolver } from "hono-openapi"; import { describeRoute, resolver } from "hono-openapi";
import { Session } from "@nestri/core/session/index";
export namespace SessionRoute { export namespace SessionRoute {
export const route = new Hono().get( export const route = new Hono().get(
@@ -10,14 +11,14 @@ export namespace SessionRoute {
summary: "List all active sessions", summary: "List all active sessions",
description: "List all the current user's active sessions", description: "List all the current user's active sessions",
responses: { responses: {
200:{ 200: {
description:"List of sessions", description: "List of sessions",
content:{ content: {
"application/json":{ "application/json": {
schema: resolver(Session.Info.array()) schema: resolver(Session.Info.array()),
} },
} },
} },
}, },
}), }),
); );