Skip to content

Commit 4835bce

Browse files
committed
change endpoints
1 parent 4a2d052 commit 4835bce

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/server.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const app = express();
88

99
app.use(cors());
1010

11-
app.get('/burned', async (req, res) => {
11+
app.get('/api/burned', async (req, res) => {
1212
tokensSentFromInflationPool()
1313
.then((result) => res.json(result))
1414
.catch((err) => {
@@ -17,7 +17,7 @@ app.get('/burned', async (req, res) => {
1717
});
1818
});
1919

20-
app.get('/total', async (req, res) => {
20+
app.get('/api/total', async (req, res) => {
2121
totalSupply()
2222
.then((result) => res.json(result))
2323
.catch((err) => {
@@ -26,7 +26,7 @@ app.get('/total', async (req, res) => {
2626
});
2727
});
2828

29-
app.get('/circulation', async (req, res) => {
29+
app.get('/api/circulating-supply', async (req, res) => {
3030
circulationSupply()
3131
.then((result) => res.json(result))
3232
.catch((err) => {

0 commit comments

Comments
 (0)