Skip to content

Commit

Permalink
Check url
Browse files Browse the repository at this point in the history
  • Loading branch information
JayJay1024 committed Feb 2, 2024
1 parent 0d9f0d7 commit 9a3fe9c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions api/image.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const fontPath = join(process.cwd(), "/api/Roboto-Regular.ttf");
const fontData = fs.readFileSync(fontPath);

export default async function handler(req: VercelRequest, res: VercelResponse) {
return res.send(`#${req.headers.location}, ${req.headers.host}`);
try {
const pollId = req.query["id"];
if (!pollId) {
Expand Down

0 comments on commit 9a3fe9c

Please sign in to comment.