mirror of
https://github.com/AeThex-Corporation/AeThex-OS.git
synced 2026-04-17 22:27:19 +00:00
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:
parent
596629a219
commit
526bfc0438
1 changed files with 0 additions and 15 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue