borders/pages/api/border/[id].js
2022-04-16 18:32:42 -04:00

8 lines
214 B
JavaScript

import { getBorderById } from "../../../lib/borders";
export default function handler(req, res) {
const id = req.query.id;
getBorderById(id).then((result) => {
return res.status(200).json(result);
});
}