Skip to content

Commit

Permalink
remove checking
Browse files Browse the repository at this point in the history
  • Loading branch information
fakenickels committed Mar 5, 2022
1 parent 741a208 commit 60a70d5
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions pages/api/kitten-hd/[id].ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,10 @@ export default async function handler(
// Run cors
await cors(req, res);
const id = (req.query.id as string).replace(/\D+/g, "");

const metadata = await fetch(`${process.env.METADATA_URL}/${id}.json`).then(
(res) => res.json()
);

try {
console.log(await contract.ownerOf(id));
const metadata = await fetch(`${process.env.METADATA_URL}/${id}.json`).then(
(res) => res.json()
);

res.status(200).json(metadata);
} catch (e) {
console.log(e);
res.status(404).json({
message: "Not found",
});
}
res.status(200).json(metadata);
}

1 comment on commit 60a70d5

@vercel
Copy link

@vercel vercel bot commented on 60a70d5 Mar 5, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.