mirror of https://github.com/lukechilds/docs.git
Jonathon Hammond
3 years ago
committed by
Alejandro Criado-Pérez
1 changed files with 11 additions and 0 deletions
@ -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…
Reference in new issue