mirror of
https://github.com/ZHANGTIANYAO1/teamspeak-music-bot.git
synced 2026-12-03 03:12:51 +08:00
fix(release): report the package version in health metadata
This commit is contained in:
1 parent
5c05eae530
commit
bd03cb1c59
4 files changed
+19
-18
No files matched your search
+2
-1
@@ -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) => {
|
||||
|
||||
Reference in new issue
Block a user