Browse Source

fix for api status page

subfolderRevert
Jonathon Hammond 3 years ago
parent
commit
5cfd66a9da
  1. 11
      src/pages/api/status.js

11
src/pages/api/status.js

@ -0,0 +1,11 @@
const status = 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));
}
};
export default status;
Loading…
Cancel
Save