import { getUserBorders } from "../../../../lib/borders"; export default function handler(req, res) { getUserBorders(req).then((result) => { if (result) { return res.status(200).json(result); } else { return res.status(404).json({ error: "Not Found" }); } }); }