mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-19 08:12:52 +00:00
chore: remove the monitoring settings route and an unused query key
The root layout now reads the public monitoring switches while it renders, so nothing calls GET /api/monitoring/settings any more (the native client never did); the route and its unpublished entry in the route coverage guard go. The Coach feedback card reads the AI quality card's cell, which left queryKeys.adminCoachFeedback() without a reader.
This commit is contained in:
1 parent
0a71e8ffa5
commit
51c4a498d9
5 files changed
+4
-23
No files matched your search
@@ -1,17 +0,0 @@
|
||||
import { apiHandler } from "@/lib/api-handler";
|
||||
import { annotate } from "@/lib/logging/context";
|
||||
import { apiSuccess } from "@/lib/api-response";
|
||||
import { getPublicMonitoringSettings } from "@/lib/monitoring-settings";
|
||||
|
||||
export const dynamic = "force-dynamic";
|
||||
|
||||
export const GET = apiHandler(async () => {
|
||||
annotate({ action: { name: "monitoring.settings.get" } });
|
||||
|
||||
const settings = await getPublicMonitoringSettings();
|
||||
return apiSuccess({
|
||||
umamiEnabled: settings.umamiEnabled,
|
||||
umamiWebsiteId: settings.umamiWebsiteId,
|
||||
glitchtipEnabled: settings.glitchtipEnabled,
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user