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

8 lines
235 B
JavaScript

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))
}