-
Notifications
You must be signed in to change notification settings - Fork 18
/
router.js
25 lines (21 loc) · 961 Bytes
/
router.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
'use strict';
const Router = require('koa-router');
const router = new Router();
const noop = require('./api/noop');
const supply = require('./api/supply');
const nftHat = require('./api/nft/hat');
const price = require('./api/price');
const bankerJoe = require('./api/bankerjoe');
router.get('/supply/circulating', supply.circulatingSupply);
router.get('/supply/circulating-adjusted', supply.circulatingSupplyAdjusted);
router.get('/supply/circulating-float', supply.circulatingSupplyAdjustedFloat);
router.get('/supply/total', supply.totalSupply);
router.get('/supply/max', supply.maxSupply);
router.get('/nft/hat', nftHat.infos);
router.get('/nft/hat/:id', nftHat.infos);
router.get('/priceavax/:tokenAddress', price.derivedPriceOfToken);
router.get('/priceusd/:tokenAddress', price.priceOfToken);
router.get('/lending/supply', bankerJoe.totalSupply);
router.get('/lending/borrow', bankerJoe.totalBorrow);
router.get('/', noop);
module.exports = router;