forked from tanner/qotnews
9 lines
230 B
JavaScript
9 lines
230 B
JavaScript
import fetch from 'node-fetch';
|
|
|
|
export async function get(req, res) {
|
|
const response = await fetch(`http://localhost:33842/api`);
|
|
res.writeHead(200, {
|
|
'Content-Type': 'application/json'
|
|
});
|
|
res.end(await response.text());
|
|
} |