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
This commit is contained in:
MrPiglr 2026-02-12 15:24:43 -07:00
parent 596629a219
commit 526bfc0438

View file

@ -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;