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
@@ -1,4 +1,5 @@
|
||||
import { Counters, Env, StatsResponse } from "../types";
|
||||
import { APP_VERSION } from "../config/version";
|
||||
import { logger } from "../infrastructure/logger";
|
||||
import { FeedRepository } from "../infrastructure/feed-repository";
|
||||
import { CountersRepository } from "../infrastructure/counters-repository";
|
||||
@@ -77,6 +78,7 @@ export async function getStats(env: Env): Promise<StatsResponse> {
|
||||
active_feeds: feeds.length,
|
||||
websub_subscriptions_active: websubCount,
|
||||
attachments_enabled: !!getAttachmentBucket(env),
|
||||
version: APP_VERSION,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user