11 lines
261 B
JavaScript
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);
|
|
});
|
|
}
|