mirror of
https://github.com/r-freeman/portfolio.git
synced 2024-11-14 19:55:40 +00:00
8 lines
260 B
TypeScript
8 lines
260 B
TypeScript
import {NextApiRequest, NextApiResponse} from 'next'
|
|
import {getUptime} from '@/lib/grafana'
|
|
|
|
export default async function handler(req: NextApiRequest, res: NextApiResponse) {
|
|
const response = await getUptime()
|
|
|
|
return res.status(200).json(response)
|
|
} |