mirror of
https://github.com/nestriness/nestri.git
synced 2026-08-02 01:35:18 +03:00
fix: Use a better ID format
This commit is contained in:
24
packages/function/src/api/routes/session.ts
Normal file
24
packages/function/src/api/routes/session.ts
Normal 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())
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
}),
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user