Spaces:
Build error
Build error
Download pages/api/emails.js from hailsbop/anycoder-e7ad4b16: direct link, hf CLI and curl.
- Browser
- Download file 250 Bytes
-
https://huggingface.co/spaces/hailsbop/anycoder-e7ad4b16/resolve/main/pages/api/emails.js
- Command line
-
hf download hf://spaces/hailsbop/anycoder-e7ad4b16/pages/api/emails.js
-
curl -L -o emails.js https://huggingface.co/spaces/hailsbop/anycoder-e7ad4b16/resolve/main/pages/api/emails.js
250 Bytes
| export default function handler(req, res) { | |
| if (req.method === 'GET') { | |
| res.status(200).json({ message: 'This would typically fetch emails from the Gmail OAuth API' }); | |
| } else { | |
| res.status(405).json({ error: 'Method not allowed' }); | |
| } | |
| } |