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