From c900fc476fc7496c278adbcb9cbf2a734e06d941 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 7 Apr 2026 12:09:56 +0500 Subject: [PATCH] fix: add forest, mono, cyber to settings API validThemes allowlist --- ui/src/routes/api/settings/+server.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/routes/api/settings/+server.ts b/ui/src/routes/api/settings/+server.ts index d2fe4f8..0c69366 100644 --- a/ui/src/routes/api/settings/+server.ts +++ b/ui/src/routes/api/settings/+server.ts @@ -45,7 +45,7 @@ export const PUT: RequestHandler = async ({ request, locals }) => { } // theme is optional — if provided (and non-empty) it must be a known value - const validThemes = ['amber', 'slate', 'rose', 'light', 'light-slate', 'light-rose']; + const validThemes = ['amber', 'slate', 'rose', 'forest', 'mono', 'cyber', 'light', 'light-slate', 'light-rose']; if (body.theme !== undefined && body.theme !== '' && !validThemes.includes(body.theme)) { error(400, `Invalid theme — must be one of: ${validThemes.join(', ')}`); }