9 lines
304 B
JavaScript
9 lines
304 B
JavaScript
import { getAllBorders, countAllBorders } from "../../../lib/borders";
|
|
|
|
export default function handler(req, res) {
|
|
getAllBorders(req.query?.limit, req.query?.cursor).then((result) => {
|
|
countAllBorders().then((count) => {
|
|
return res.status(200).json({ data: result, count });
|
|
});
|
|
});
|
|
}
|