recator placement of code

This commit is contained in:
2026-02-17 11:46:57 -06:00
parent 31f8c368d9
commit 23c000fa7f
77 changed files with 4528 additions and 2697 deletions

View File

@@ -0,0 +1,43 @@
import type { OpenAPIV3_1 } from "openapi-types";
export const statusSpec: OpenAPIV3_1.PathsObject = {
"/api/stats": {
get: {
summary: "Server Status",
description: "Checks the status of the server.",
tags: ["System"],
responses: {
"200": {
description: "Stats from the server",
content: {
"application/json": {
schema: {
type: "object",
properties: {
status: {
type: "string",
format: "ok",
example: "ok",
},
uptime: {
type: "number",
format: "3454.34",
example: 3454.34,
},
memoryUsage: {
type: "string",
format: "Heap: 11.62 MB / RSS: 86.31 MB",
},
sqlServerStats: {
type: "number",
format: "442127",
},
},
},
},
},
},
},
},
},
};