feat(api): expose app version in /api/v1/stats
Add version to StatsResponse and getStats so the canonical public monitoring endpoint reports the running build alongside the footer and /health. Co-Authored-By: Claude Opus 4.7 <[email protected]>
This commit is contained in:
1 parent
e86beeeb8a
commit
82a4bd8341
5 files changed
+9
-1
No files matched your search
@@ -295,10 +295,12 @@ describe("REST API (/api/v1)", () => {
|
||||
feeds_created: number;
|
||||
active_feeds: number;
|
||||
attachments_enabled: boolean;
|
||||
version: string;
|
||||
};
|
||||
expect(stats.feeds_created).toBeGreaterThanOrEqual(1);
|
||||
expect(stats.active_feeds).toBeGreaterThanOrEqual(1);
|
||||
expect(typeof stats.attachments_enabled).toBe("boolean");
|
||||
expect(stats.version).toMatch(/^\d+\.\d+\.\d+/);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user