added version endpoint
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2026-02-25 21:42:21 +01:00
parent d7902deeb4
commit 15804a5605
2 changed files with 8 additions and 0 deletions

View File

@@ -87,6 +87,11 @@ app.get("/health", (_, res) => {
res.json({ status: "ok" });
});
// Version endpoint
app.get("/version", (_, res) => {
res.json({ version: process.env.VERSION || "unknown", commit: process.env.COMMIT || "unknown" });
});
// AI Test endpoint (for development only)
app.post("/api/ai/test", async (req, res) => {
try {