Skip to content

Commit

Permalink
change endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
EugenWay committed Sep 4, 2023
1 parent 4a2d052 commit 4835bce
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand All @@ -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) => {
Expand All @@ -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) => {
Expand Down

0 comments on commit 4835bce

Please sign in to comment.