From 526bfc0438b2dbb09626c9eab1153b7bc171d5f0 Mon Sep 17 00:00:00 2001 From: MrPiglr Date: Thu, 12 Feb 2026 15:24:43 -0700 Subject: [PATCH] fix(server): remove root JSON endpoint to allow static file serving - Remove GET '/' endpoint that returned API status JSON - Allows static middleware to serve React app at root - Healthcheck still works at GET /health - Fixes aethex.app showing JSON instead of web app --- server/index.ts | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/server/index.ts b/server/index.ts index da00af1..1ffd92d 100644 --- a/server/index.ts +++ b/server/index.ts @@ -25,21 +25,6 @@ app.get("/health", (_req, res) => { res.json({ status: "healthy", timestamp: new Date().toISOString() }); }); -// Root health check (Railway uses this) -app.get("/", (_req, res) => { - res.json({ - status: "online", - service: "AeThex OS API", - version: "1.0.0", - timestamp: new Date().toISOString(), - endpoints: { - web: "Use client to access web interface", - api: "/api/*", - download: "/api/download/*" - } - }); -}); - // API status endpoint (moved from root to /api/status) app.get("/api/status", (_req, res) => { const isKernel = process.env.OPS_Version ? true : false;