mirror of
https://github.com/r-freeman/portfolio.git
synced 2024-11-26 23:45:41 +00:00
8 lines
270 B
TypeScript
8 lines
270 B
TypeScript
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)
|
|
} |