borders/pages/api/user/border/[id].js
2022-04-10 14:26:47 -04:00

11 lines
261 B
JavaScript

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