Browse Source

fix for api status page

patch-criadoperez4
Jonathon Hammond 3 years ago
committed by Alejandro Criado-Pérez
parent
commit
42e8f7e616
  1. 9
      src/pages/en/api/status.js

9
src/pages/en/api/status.js

@ -1,9 +0,0 @@
export default async (req, res) => {
const response = await fetch('http://status.test-blockstack.com/json');
const json = await response.json();
if (json) {
res.statusCode = 200;
res.setHeader('Content-Type', 'application/json');
res.end(JSON.stringify(json.blockRateStatus));
}
};
Loading…
Cancel
Save