fix(release): report the package version in health metadata

This commit is contained in:
TIANYAO ZHANG committed 2026-11-18 17:09:59 +08:00
1 parent 5c05eae530
commit bd03cb1c59
4 files changed
+19 -18

No files matched your search

+2 -1
View File
@@ -8,6 +8,7 @@ import type { MusicProvider } from "../music/provider.js";
import type { BotDatabase } from "../data/database.js";
import type { BotConfig, GuestModeConfig } from "../data/config.js";
import type { Logger } from "../logger.js";
import { APP_VERSION } from "../version.js";
import type { CookieStore } from "../music/auth.js";
import type { AvatarStore } from "../data/avatars.js";
import { createBotRouter } from "./api/bot.js";
@@ -116,7 +117,7 @@ export function createWebServer(options: WebServerOptions): WebServer {
});
app.get("/api/health", (_req, res) => {
res.json({ status: "ok", version: "0.1.0" });
res.json({ status: "ok", version: APP_VERSION });
});
app.get("/api/config/public-url", (_req, res) => {