From 4835bcebfbaab2f9315bdd960cfb4d1de1fb35fe Mon Sep 17 00:00:00 2001 From: EugeneWay Date: Mon, 4 Sep 2023 14:57:44 +0200 Subject: [PATCH] change endpoints --- src/server.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/server.js b/src/server.js index b2b5b50..720bc0c 100644 --- a/src/server.js +++ b/src/server.js @@ -8,7 +8,7 @@ const app = express(); app.use(cors()); -app.get('/burned', async (req, res) => { +app.get('/api/burned', async (req, res) => { tokensSentFromInflationPool() .then((result) => res.json(result)) .catch((err) => { @@ -17,7 +17,7 @@ app.get('/burned', async (req, res) => { }); }); -app.get('/total', async (req, res) => { +app.get('/api/total', async (req, res) => { totalSupply() .then((result) => res.json(result)) .catch((err) => { @@ -26,7 +26,7 @@ app.get('/total', async (req, res) => { }); }); -app.get('/circulation', async (req, res) => { +app.get('/api/circulating-supply', async (req, res) => { circulationSupply() .then((result) => res.json(result)) .catch((err) => {