mirror of
https://github.com/nestriness/nestri.git
synced 2026-08-01 17:34:15 +03:00
feat: I do not remember
This commit is contained in:
@@ -3,6 +3,7 @@ import { randomBytes } from "crypto";
|
||||
|
||||
export namespace Identifier {
|
||||
export const prefixes = {
|
||||
run: "run",
|
||||
app: "app",
|
||||
user: "usr",
|
||||
steam: "stm",
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { Hono } from "hono";
|
||||
import { describeRoute, resolver } from "hono-openapi";
|
||||
import { Session } from "@nestri/core/session/index";
|
||||
|
||||
export namespace SessionRoute {
|
||||
export const route = new Hono().get(
|
||||
@@ -10,14 +11,14 @@ export namespace SessionRoute {
|
||||
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())
|
||||
}
|
||||
}
|
||||
}
|
||||
200: {
|
||||
description: "List of sessions",
|
||||
content: {
|
||||
"application/json": {
|
||||
schema: resolver(Session.Info.array()),
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
}),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user