hailsbop commited on
Commit
2cd4928
·
verified ·
1 Parent(s): b3fbe46

Upload pages/api/emails.js with huggingface_hub

Browse files
Files changed (1) hide show
  1. pages/api/emails.js +7 -0
pages/api/emails.js ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ export default function handler(req, res) {
2
+ if (req.method === 'GET') {
3
+ res.status(200).json({ message: 'This would typically fetch emails from the Gmail OAuth API' });
4
+ } else {
5
+ res.status(405).json({ error: 'Method not allowed' });
6
+ }
7
+ }