- Move web app into apps/web/ - Create packages/shared/ with shared types - Create plugins/decky-vault/ scaffold - Root package.json manages workspaces only
20 lines
380 B
TypeScript
20 lines
380 B
TypeScript
import { Elysia } from "elysia"
|
|
|
|
export const healthRoutes = new Elysia({
|
|
prefix: "/health",
|
|
detail: { tags: ["Health"] },
|
|
}).get(
|
|
"/",
|
|
() => ({
|
|
status: "ok",
|
|
timestamp: new Date().toISOString(),
|
|
service: "deckyvault-api",
|
|
}),
|
|
{
|
|
detail: {
|
|
summary: "Health check",
|
|
description: "Returns the current health status of the API.",
|
|
},
|
|
},
|
|
)
|