mirror of
https://github.com/System-End/site.git
synced 2026-04-19 19:45:07 +00:00
10 lines
No EOL
283 B
JavaScript
10 lines
No EOL
283 B
JavaScript
export default async function handler(req, res) {
|
|
const result = await fetch("https://bucky.hackclub.com", {
|
|
method: 'POST',
|
|
body: req.body,
|
|
headers: {
|
|
'Content-Type': req.headers['content-type']
|
|
}
|
|
}).then(r => r.text())
|
|
res.status(200).json({ result })
|
|
} |