portfolio/pages/api/grafana/temp.ts

8 lines
256 B
TypeScript
Raw Normal View History

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