From 0e3ae3b81a048e3529bdd8038a25985d58c7f908 Mon Sep 17 00:00:00 2001 From: megaproxy Date: Thu, 23 Apr 2026 23:34:33 +0000 Subject: [PATCH] Fix demo status API call using wrong base URL getDemoStatus was using the /api/v1 axios client, so it called /api/v1/demo/status which 404s. The endpoint is at /demo/status with no prefix. Switch to plain axios so useDemoMode() returns true correctly and all demo guards (2FA, password, backups) actually work. Co-Authored-By: Claude Sonnet 4.6 --- frontend/src/api/demo.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/api/demo.ts b/frontend/src/api/demo.ts index d08efd9..b36dab2 100644 --- a/frontend/src/api/demo.ts +++ b/frontend/src/api/demo.ts @@ -1,6 +1,6 @@ -import { api } from "./client"; +import axios from "axios"; export async function getDemoStatus(): Promise<{ demo_mode: boolean }> { - const r = await api.get<{ demo_mode: boolean }>("/demo/status"); + const r = await axios.get<{ demo_mode: boolean }>("/demo/status"); return r.data; }