6e94a0c998
- Admin TVs tab: wake time/days, YouTube Music playlist, Shield volume per TV, pushed via 5-min TV check-ins (/api/tv/config, /api/tv/report, LAN-only) - com.dayline.photos 1.2.1: MorningActivity (screen on, volume, playlist), calendar alarm at wake time, Doze-safe chained check-ins - Both TVs configured for 06:30 daily with the family playlist Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01E9NnVEico3WvFxLyjy1iW3
28 lines
808 B
TypeScript
28 lines
808 B
TypeScript
import { readAuth, readSettings } from "../../_lib/store";
|
|
|
|
export const dynamic = "force-dynamic";
|
|
|
|
export async function GET() {
|
|
const { calendars } = await readSettings();
|
|
let adminConfigured = false;
|
|
try {
|
|
adminConfigured = Boolean((await readAuth()).passwordHash);
|
|
} catch {
|
|
adminConfigured = false;
|
|
}
|
|
|
|
return Response.json(
|
|
{
|
|
status: "ok",
|
|
service: "hobbs-family-organizer",
|
|
version: "1.4.0",
|
|
calendarConfigurationValid: calendars.some((calendar) => calendar.enabled),
|
|
calendarsEnabled: calendars.filter((calendar) => calendar.enabled).length,
|
|
adminConfigured,
|
|
authenticationEnabled: Boolean(process.env.ORGANIZER_ACCESS_TOKEN),
|
|
checkedAt: new Date().toISOString(),
|
|
},
|
|
{ headers: { "Cache-Control": "no-store" } },
|
|
);
|
|
}
|