Merge pull request #1096 from saishankar404/feat/ui-version-label

add app version label
This commit is contained in:
Dotta
2026-03-17 09:50:04 -05:00
committed by GitHub
5 changed files with 22 additions and 2 deletions

View File

@@ -3,6 +3,7 @@ import type { Db } from "@paperclipai/db";
import { and, count, eq, gt, isNull, sql } from "drizzle-orm";
import { instanceUserRoles, invites } from "@paperclipai/db";
import type { DeploymentExposure, DeploymentMode } from "@paperclipai/shared";
import { serverVersion } from "../version.js";
export function healthRoutes(
db?: Db,
@@ -22,7 +23,7 @@ export function healthRoutes(
router.get("/", async (_req, res) => {
if (!db) {
res.json({ status: "ok" });
res.json({ status: "ok", version: serverVersion });
return;
}
@@ -56,6 +57,7 @@ export function healthRoutes(
res.json({
status: "ok",
version: serverVersion,
deploymentMode: opts.deploymentMode,
deploymentExposure: opts.deploymentExposure,
authReady: opts.authReady,