Skip to content

Commit 108d7aa

Browse files
committed
Add index.html to reputation mining client
1 parent 5088b7f commit 108d7aa

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

packages/reputation-miner/ReputationMinerClient.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class ReputationMinerClient {
2626
});
2727

2828
this._app.get("/", async (req, res) => {
29-
return res.status(200).send("⛏️ Welcome to the Colony Reputation Miner!");
29+
return res.status(200).sendFile(path.join(__dirname, 'viz/index.html'));
3030
});
3131

3232
// Serve visualizers
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8">
5+
<title>Colony Reputation Miner</title>
6+
</head>
7+
<body>
8+
9+
<h3>⛏️ Welcome to the Colony Reputation Miner!</h3>
10+
11+
<p><a href="repTree">🌲Tree Visualizer</a> | <a href="repCycle">👷🏽Mining Cycle Explorer</a></p>
12+
13+
</body>
14+
</html>

0 commit comments

Comments
 (0)