impress-2020/api/validPetPoses.js

12 lines
355 B
JavaScript
Raw Normal View History

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");
res.status(200).send(buffer);
};