diff --git a/server.js b/server.js index 17eea8e..8106059 100644 --- a/server.js +++ b/server.js @@ -374,6 +374,130 @@ function stateBody(friendlyName, icon, usage, fetchedAt) { const app = express(); app.set("json spaces", 2); +app.get("/", (_req, res) => { + res.send(` + + + + +Ollama Cloud Usage + + + +
+

Ollama Cloud Usage

+ +
+

Update Cookies

+

Paste the exported cookie JSON array from your browser below.

+ + +
+
+ +
+

Current Usage

+ +
+ No data yet. +
+
+
+ +
+

Health

+
Checking...
+
+
+ + +`); +}); + app.get("/api/usage", (_req, res) => { if (!latestState) { return res.json({ status: "no_data", message: "No data yet. Wait for first poll." });