portfolio/pages/api/grafana/temp.ts

8 lines
260 B
TypeScript
Raw Normal View History

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