diff options
| author | Adam Soltys <[email protected]> | 2022-10-03 12:09:45 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2022-10-03 12:09:45 -0700 |
| commit | 622c70511fbcc53bc6630c15b920f54fca4e916c (patch) | |
| tree | 19938762dd99bb90b107e51cef9b98279e1668ef /lib/rates.js | |
| parent | a4dbec3195d074dda9d9bcfdc0328cb05f5f0b00 (diff) | |
| download | coinos-server-622c70511fbcc53bc6630c15b920f54fca4e916c.tar.gz coinos-server-622c70511fbcc53bc6630c15b920f54fca4e916c.zip | |
rate endpoint
Diffstat (limited to 'lib/rates.js')
| -rw-r--r-- | lib/rates.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/rates.js b/lib/rates.js index f01b7169..a4a620ea 100644 --- a/lib/rates.js +++ b/lib/rates.js @@ -58,6 +58,10 @@ let fetchRates; setTimeout(fetchRates, 7200000); })(); +app.get("/rate", async (req, res, next) => { + res.send(store.last); +}); + app.get("/rates", async (req, res, next) => { res.send(store.rates); }); |
