1
0
mirror of https://github.com/fazo96/ipfs-boards synced 2025-01-27 15:14:20 +01:00
ipfs-boards/pages/api/status.js

8 lines
235 B
JavaScript
Raw Normal View History

2019-11-13 01:02:56 +01:00
import { refreshInfo } from '../../components/system'
export default async (req, res) => {
const info = await refreshInfo()
res.setHeader('Content-Type', 'application/json')
res.statusCode = 200
res.end(JSON.stringify(info))
}