mirror of
https://github.com/fazo96/ipfs-boards
synced 2025-01-27 15:14:20 +01:00
8 lines
235 B
JavaScript
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))
|
||
|
}
|