borders/pages/api/border/[id].js

9 lines
214 B
JavaScript
Raw Normal View History

2022-04-11 17:33:16 +00:00
import { getBorderById } from "../../../lib/borders";
export default function handler(req, res) {
2022-04-16 22:29:21 +00:00
const id = req.query.id;
getBorderById(id).then((result) => {
return res.status(200).json(result);
});
}