6 lines
216 B
JavaScript
6 lines
216 B
JavaScript
export default async function ApiRoute(_req, res) {
|
|
const port = process.env.NEXT_PUBLIC_API_PORT
|
|
const response = await fetch(`http://localhost:${port}/`)
|
|
const json = await response.json()
|
|
res.json(json)
|
|
}
|