2020-05-03 01:04:34 -07:00
|
|
|
import getValidPetPoses from "../src/server/getValidPetPoses";
|
|
|
|
|
|
|
|
export default async (req, res) => {
|
|
|
|
const buffer = await getValidPetPoses();
|
2020-05-03 02:13:46 -07:00
|
|
|
|
|
|
|
// Cache for 1 hour. This will also cache at Vercel's CDN, so the function
|
|
|
|
// shouldn't even get run very often at all!
|
|
|
|
res.setHeader("Cache-Control", "max-age=3600");
|
|
|
|
|
2020-05-03 01:04:34 -07:00
|
|
|
res.status(200).send(buffer);
|
|
|
|
};
|