portfolio/pages/api/grafana/rootfs.ts

8 lines
270 B
TypeScript
Raw Normal View History

2023-02-10 17:02:15 +00:00
import {NextApiRequest, NextApiResponse} from 'next'
import {getRootFsUsage} from '@/lib/grafana'
export default async function handler(req: NextApiRequest, res: NextApiResponse) {
const response = await getRootFsUsage()
return res.status(200).json(response)
}